Tiago,

What's the benefit in using a property map over just calling the attribute
of the edge?

Thanks,
Ronnie


On 17 December 2012 15:52, Daniel Müllner <[email protected]>wrote:

> 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<http://lists.skewed.de/mailman/listinfo/graph-tool>
>
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to