Hi, The starting index in R should be 1, not 0. This corresponds to R's 1-based array indexing.
There are some functions which will sometimes (incorrectly) return 0-based indices, see e.g. here: http://lists.nongnu.org/archive/html/igraph-help/2013-05/msg00002.html On 9 May 2013 11:41, ash nix <[email protected]> wrote: > Hi, > > I am new to igraph and confused about the starting index for vertex. > Many documentation says that starting index for vertex in R is 0. > But on R I get the starting index as 1. > > Please following > > > V(kap)[0] > Vertex sequence: > character(0) > > V(kap)[1] > Vertex sequence: > [1] "moskowitz" > > -- > Thanks, > A > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > >
_______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
