Skip to content

Commit ea0acd4

Browse files
fix: fix algebraic_variables_scc
1 parent 8f649f8 commit ea0acd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/structural_transformation/tearing.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ function algebraic_variables_scc(state::TearingState)
6363
all(v -> !isdervar(state.structure, v),
6464
𝑠neighbors(graph, eq))
6565
end))
66-
var_eq_matching = complete(maximal_matching(graph, e -> e in algeqs, v -> v in algvars))
66+
var_eq_matching = complete(
67+
maximal_matching(graph, e -> e in algeqs, v -> v in algvars), ndsts(graph))
6768
var_sccs = find_var_sccs(complete(graph), var_eq_matching)
6869

6970
return var_eq_matching, var_sccs

0 commit comments

Comments
 (0)