Hi Tiago,
Thanks for your attention.
When I use a small example it works fine. But the problem occurs when I use
a big graph with 11000 vertices as I showed in the image in the previous
post. Could I send a link containing all my edges and a the code here?
I based on this small example that is working fine:
import graph_tool.all as gt
import matplotlib as mat
g = gt.Graph()
g.add_vertex(7)
g.add_edge(0,1)
g.add_edge(1,2)
g.add_edge(2,3)
g.add_edge(2,4)
g.add_edge(3,5)
g.add_edge(2,6)
pos = g.new_vertex_property("vector<double>")
pin = g.new_vertex_property("bool")
pos[g.vertex(0)] = (0, 0)
pos[g.vertex(1)] = (2, 2)
pos[g.vertex(2)] = (4, 2)
pos[g.vertex(3)] = (6,6)
pos[g.vertex(4)] = (0,4)
pos[g.vertex(5)] = (9,8)
pos[g.vertex(6)] = (0,8)
pin[g.vertex(0)] = True
pin[g.vertex(1)] = True
pin[g.vertex(2)] = True
pin[g.vertex(3)] = True
pin[g.vertex(4)] = False
pin[g.vertex(5)] = False
pin[g.vertex(6)] = False
gt.graph_draw(g, pos, output_size=(1000, 1000), edge_pen_width=1.3,
vertex_size=10, vcmap=mat.cm.jet, output='fixed_positions.png', fmt='png')
pos = gt.sfdp_layout(g, pin=pin, pos=pos)
gt.graph_draw(g, pos, output_size=(1000, 1000), edge_pen_width=1.3,
vertex_size=10, vcmap=mat.cm.jet, output='final_positions.png', fmt='png')