File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ def topo_sort(graph):
42
42
if (master := extract_master (part )) in graph :
43
43
for edge in graph .in_edges (part ):
44
44
parent = edge [0 ]
45
- if parent != master and extract_master (parent ) != master :
45
+ if master not in (parent , extract_master (parent )):
46
+ # if parent is neither master nor part of master
46
47
graph .add_edge (parent , master )
47
48
sorted_nodes = list (nx .topological_sort (graph ))
48
49
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ class Diagram(nx.DiGraph):
71
71
Only those tables that are loaded in the connection object are displayed
72
72
"""
73
73
74
- def __init__ (self , source = None , context = None ):
74
+ def __init__ (self , source , context = None ):
75
75
76
76
if isinstance (source , Diagram ):
77
77
# copy constructor
You can’t perform that action at this time.
0 commit comments