Hi,
You have to define vertex properties like so:
`graph.vertex_properties["labels"] = labels`
assuming `labels` here is a vertex PropertyMap
See here:
http://graph-tool.skewed.de/static/doc/quickstart.html#internal-property-maps
G.
Le 28/01/2015 03:06, Andrew Terhune a écrit :
Hello,
I am brand new to graph-tool and found out with example how to label
vertices when using graph_draw, as seen below
graph_draw(g, vertex_text=labelv, edge_font_size=40,
edge_text_distance=20, edge_marker_size=40, output="output.png")
but do not see how to label vertices and edges when doing something like:
g.save('testoutput.graphml','graphml')
Can anyone assist with how this is done?
Thanks!
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool