Hi,
I'm using the code below to fix the position of a root vertex. I'm
developing an application and I wanna make sure that the root vertex is
always located in the same place.
g = Graph()
v_pin = g.new_vertex_property("bool")
v = g.add_vertex()
v_pin[v] = True #root vertex
...
pos = sfdp_layout(g, pin=v_pin)
graph_draw(g, ...)
I suppose it's working, but how I can confirm which one is the root vertex
in my result?
<http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/file/n4025773/mxt.png>
--
View this message in context:
http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Fixing-position-of-root-vertex-tp4025773.html
Sent from the Main discussion list for the graph-tool project mailing list
archive at Nabble.com.
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool