fix not printed

This commit is contained in:
Costa Shulyupin 2018-09-09 18:39:53 +03:00
parent a0c277929b
commit b94a746447
1 changed files with 5 additions and 3 deletions

View File

@ -511,9 +511,11 @@ def digraph_print(dg, starts=None, dst_fn=None, sort=False):
continue
passed.add(o)
if o in dg:
for o in dg.nodes():
if o not in printed:
digraph_print_sub('', o, printed)
digraph_print_sub('', o, printed)
# not yet printed rest:
for o in dg.nodes():
if o not in printed:
digraph_print_sub('', o, printed)
if dst_fn:
print(dst_fn)
dst.close()