update to graphviz.Digraph API
This commit is contained in:
parent
d1b2a4ed11
commit
7685703cbb
|
@ -903,7 +903,7 @@ def write_dot(g, dot):
|
||||||
dot.write("{ rank=same %s }\n" %
|
dot.write("{ rank=same %s }\n" %
|
||||||
(' '.join(['"%s"' % (str(a)) for a in ranks[r]])))
|
(' '.join(['"%s"' % (str(a)) for a in ranks[r]])))
|
||||||
for n in g.nodes():
|
for n in g.nodes():
|
||||||
prop = Munch(g.node[n])
|
prop = Munch(g._node[n])
|
||||||
if scaled and len(ranks):
|
if scaled and len(ranks):
|
||||||
prop.fontsize = 500 + 10000 / (len(ranks[rank(g, n)]) + 1)
|
prop.fontsize = 500 + 10000 / (len(ranks[rank(g, n)]) + 1)
|
||||||
prop.fontsize = 30 + min(5 * len(g.edges(n)), 50)
|
prop.fontsize = 30 + min(5 * len(g.edges(n)), 50)
|
||||||
|
|
Loading…
Reference in New Issue