+dot_expand

This commit is contained in:
Costa Shulyupin 2018-08-07 09:12:22 +03:00
parent 83e17d2ee2
commit bdefbe2f24
1 changed files with 7 additions and 0 deletions

View File

@ -821,6 +821,13 @@ def stats(a):
pprint(dict(stat)) 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]) me = os.path.basename(sys.argv[0])