igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] igraph vertex index


From: Szabolcs Horvát
Subject: Re: [igraph] igraph vertex index
Date: Thu, 9 May 2013 11:44:10 -0400

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 <address@hidden> 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
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

[Prev in Thread] Current Thread [Next in Thread]