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