igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] I am not understanding something.....


From: Tamas Nepusz
Subject: Re: [igraph] I am not understanding something.....
Date: Wed, 18 Jun 2008 13:31:02 +0200

for v in G.vs():
   print v.index, G.neighbors(v.index)

Is this *too awful*?? :)
No, but a little clarification: G.vs itself is a VertexSeq object, no need to "call" it. Calling it is useful when you want to filter out specific vertices. E.g., G.vs(capacity_lt=30) returns vertices having a "capacity" less than 30, provided that such an attribute exists. You can safely write G.vs instead of G.vs()

--
Tamas





reply via email to

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