|
From: | Tamas Nepusz |
Subject: | Re: [igraph] Error: "At iterators.c:721 : Cannot create iterator, invalid vertex id, Invalid vertex id" while computing shortest path |
Date: | Mon, 21 Jun 2010 09:02:09 +0100 |
> Hi, > > I invoked "shortest.paths (graph,row) " function in R in order to > compute shortest path in the graph. But I get the following error > after a while: I made a typical error in my original email; in igraph, vertex indices go from zero to N-1, so you have to type this: for (i in 0:vcount(g)-1) { instead of this: for (i in 1:vcount(g)) { -- T.
[Prev in Thread] | Current Thread | [Next in Thread] |