*write_dot

This commit is contained in:
Costa Shulyupin 2018-08-12 23:28:53 +03:00
parent b19cb8fdc3
commit cdaadaa6d1
1 changed files with 2 additions and 1 deletions

View File

@ -658,7 +658,8 @@ def write_dot(g, dot):
if scaled and len(ranks):
prop.fontsize = 500 + 10000 / (len(ranks[rank(g, n)]) + 1)
# prop.label = n + ' ' + str(rank(g,n))
dot.write('"%s" [%s]\n' % (n, ','.join(['%s="%s"' % (a, str(prop[a])) for a in prop])))
if prop:
dot.write('"%s" [%s]\n' % (n, ','.join(['%s="%s"' % (a, str(prop[a])) for a in prop])))
# else:
# dot.write('"%s"\n'%(n))
dot.write('}\n')