From bdefbe2f2446e5919716beafb5c2981915b7f46c Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Tue, 7 Aug 2018 09:12:22 +0300 Subject: [PATCH] +dot_expand --- srcxray.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcxray.py b/srcxray.py index 8ba64d0..44c4703 100755 --- a/srcxray.py +++ b/srcxray.py @@ -821,6 +821,13 @@ def stats(a): pprint(dict(stat)) +def dot_expand(a, b): + a = to_dg(a) + b = to_dg(b) + a.add_edges_from(list(b.out_edges(b.nbunch_iter(a.nodes())))) + return a + + me = os.path.basename(sys.argv[0])