17 Dec
2012
17 Dec
'12
8:48 p.m.
On 12/17/2012 09:30 PM, Daniel Müllner wrote:
for edge in GV.edges(): source = GV.vertex_index(edge.source()) print(source)
In order to access property map items, you have to use the [] operator, not the call operator, i.e. for edge in GV.edges(): source = GV.vertex_index[edge.source()] print(source) (The call operator expects an array, which is copied to the property internal values.) Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>