Silly me! I thought that I had used round brackets with ordinary Graphs (as opposed to GraphViews before), but that was wrong. Thanks for the swift help!

Cheers,

Daniel

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

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

Reply via email to