On 15.12.2016 05:21, Snehal Shekatkar wrote:
> Thanks.. that worked! A small related question: The nodes in my graph are
> strings and that's why I am using `hashed = True` and `string_vals = True`.
> How can I use these values as labels for my nodes while drawing the graph? I
> couldn't find any way to extract these strings to define a new property map
> for vertex_text.

The Graph.add_edge_list() method already returns the property map you want.

Best,
Tiago

-- 
Tiago de Paula Peixoto <[email protected]>

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to