Commit 315fa2df authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 3fe6f599
...@@ -467,7 +467,8 @@ def graphviz(t): ...@@ -467,7 +467,8 @@ def graphviz(t):
emit(' <td port="con%d"></td>' % j) emit(' <td port="con%d"></td>' % j)
if 1: if 1:
emit(' <td port="key%d">%d</td>' % (j,key)) emit(' <td port="key%d">%d</td>' % (j,key))
emit(' <td port="con%d"></td>' % len(node.keyv)) emit(' <td port="con%d">%s</td>' % (len(node.keyv), \
(' ' if len(node.keyv) == 0 else '')))
emit(' </tr>') emit(' </tr>')
emit(' </table>>') emit(' </table>>')
...@@ -501,8 +502,8 @@ def topoview(argv): ...@@ -501,8 +502,8 @@ def topoview(argv):
#g = gv.Digraph(comment='AAA') #g = gv.Digraph(comment='AAA')
#print(g.render(format='pdf', view=True)) #print(g.render(format='pdf', view=True))
g = gv.Source(topov[0].graphviz()) g = gv.Source(topov[0].graphviz())
print(g.source) #g.view()
g.view() g.render('x', format='svg')
if __name__ == '__main__': if __name__ == '__main__':
......
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