From b94a74644762eeebe1206a08cd4881e6f71be8ed Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Sun, 9 Sep 2018 18:39:53 +0300 Subject: [PATCH] fix not printed --- srcxray.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/srcxray.py b/srcxray.py index 65aa513..4f04738 100755 --- a/srcxray.py +++ b/srcxray.py @@ -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()