9 Mar
2014
9 Mar
'14
6:36 p.m.
Hi, how can I specify for each vertex a text so that when i draw the graph its text gets drawn instead of its index? Best, Gucko
10 Mar
10 Mar
9:41 a.m.
On 03/09/2014 07:36 PM, Hang Mang wrote:
Hi,
how can I specify for each vertex a text so that when i draw the graph its text gets drawn instead of its index?
Please take a look in the full documentation of the graph_draw() function, specially the "text" attribute: http://graph-tool.skewed.de/static/doc/draw.html#graph_tool.draw.graph_draw Essentially, something as simple as graph_draw(g, vertex_text=foo) will do what you want, where foo is a vertex property map containing the text you want. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
4300
Age (days ago)
4301
Last active (days ago)
1 comments
2 participants
participants (2)
-
Hang Mang -
Tiago de Paula Peixoto