Skip to content

Commit 490bdd1

Browse files
committed
Minor change of operation placement in exact_mif_v2
1 parent b5f6cfe commit 490bdd1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

exact_mif_v2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ def get_mif_len(G, F, active_v):
150150
if len(sg_F.nodes) > 0 and not nx.is_forest(sg_F):
151151
return 0
152152

153-
new_G = G.copy()
154-
new_F = set(F)
155-
156153
if (
157154
len(sg_F.edges) != 0
158155
): # If F is not independent (if not every component of G[F] is an isolated vertex)
156+
157+
new_G = G.copy()
158+
new_F = set(F)
159159
for T in get_non_trivial_components(sg_F):
160160
# Get all neighbors of T in G and need to remove those with more than 1 connection to T
161161
nb_T = set()

0 commit comments

Comments
 (0)