From cdaadaa6d10bf87e4ea86ef55688fd37df6b285e Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Sun, 12 Aug 2018 23:28:53 +0300 Subject: [PATCH] *write_dot --- srcxray.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcxray.py b/srcxray.py index 1f47be6..76728eb 100755 --- a/srcxray.py +++ b/srcxray.py @@ -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')