Hello,
I'm a newcomer to Python and I don't understand the way I could get drawn
some properties for edges or vertices.
The documentation says:
vprops : dict (default: {})
Additional vertex properties, as a dictionary. The keys are the property
names, and the values must be convertible to string, or vertex property
maps, with values convertible to strings.
But I guess that I'm missing something with Python as I only get drawn a
text description of the object. Foe example:
If I try a sentence like
graph_draw(g, eprops={"label": g.edge_properties}, output="two-nodes2.png")
it draws obviously the label for that object which is:
{'occ': <PropertyMap object with key type 'Edge' and value type
'int32_t', for Graph 0x2f6dcd0, at 0x2f6de10>}
But I don't understand which parameter I should pass to graph_draw in order
to get the desired outcome.
Could you provide a mini-example of drawing a small graph with properties on
edges/vertices? This could also be added to the Quick tutorial.
Thank you in advance peers.
Regards.