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 <[email protected]>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to