Re: [graph-tool] Multiplex and Graph construction
17 Dec
2017
17 Dec
'17
10:16 a.m.
On 17.12.2017 01:12, Bernardo Alves Furtado wrote:
Now, all the examples access the vertices by their number of generation.
I have created a vertex property of names.
How can I access the vertices by such property (without find_vertex).
You must create a dictionary that does the mapping: vertices = dict((name[v], v) for v in g.vertices()) The reason why this is not built-in is because the property map values are not in general unique. -- Tiago de Paula Peixoto <tiago@skewed.de>
2922
Age (days ago)
2922
Last active (days ago)
0 comments
1 participants
participants (1)
-
Tiago de Paula Peixoto