forked from OpenSDV/Linux_Kernel_map4vehicle
*write_dot
This commit is contained in:
parent
b19cb8fdc3
commit
cdaadaa6d1
|
@ -658,7 +658,8 @@ def write_dot(g, dot):
|
||||||
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.label = n + ' ' + str(rank(g,n))
|
# 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:
|
# else:
|
||||||
# dot.write('"%s"\n'%(n))
|
# dot.write('"%s"\n'%(n))
|
||||||
dot.write('}\n')
|
dot.write('}\n')
|
||||||
|
|
Loading…
Reference in New Issue