Commit 8aba5e72 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix 'penwidth' parameter in graph_draw()

parent 1d47731d
......@@ -269,7 +269,7 @@ def graph_draw(g, pos=None, size=(15, 15), pin=False, layout= "neato",
vsize = s
if type(penwidth) == tuple:
s = g.new_vertex_property("double")
s = g.new_edge_property("double")
g.copy_property(penwidth[0], s)
s.a *= penwidth[1]
penwidth = s
......@@ -409,7 +409,7 @@ def graph_draw(g, pos=None, size=(15, 15), pin=False, layout= "neato",
edges.append(ge)
gv.layout(gvg, layout)
gv.render(gvg, "dot", "/dev/null") # retrieve postitions
gv.render(gvg, "dot", "/dev/null") # retrieve positions
if pos == None:
pos = (g.new_vertex_property("double"), g.new_vertex_property("double"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment