|
From: | Tamas Nepusz |
Subject: | Re: [igraph] I am not understanding something..... |
Date: | Wed, 18 Jun 2008 13:31:02 +0200 |
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()for v in G.vs(): print v.index, G.neighbors(v.index) Is this *too awful*?? :)
-- Tamas
[Prev in Thread] | Current Thread | [Next in Thread] |