Skip to content

Commit 9c2a287

Browse files
committed
Fix test
1 parent a63ef91 commit 9c2a287

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/structural_transformation/bipartite_tearing/modia_tearing.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ function tear_graph_modia(structure::SystemStructure, isder::F = nothing,
7575
@unpack graph, solvable_graph = structure
7676
var_eq_matching = maximal_matching(graph, eqfilter, varfilter, U)
7777
var_eq_matching = complete(var_eq_matching,
78-
maximum(x -> x isa Int ? x : 0, var_eq_matching))
78+
max(length(var_eq_matching),
79+
maximum(x -> x isa Int ? x : 0, var_eq_matching)))
7980
var_sccs::Vector{Union{Vector{Int}, Int}} = find_var_sccs(graph, var_eq_matching)
8081
vargraph = DiCMOBiGraph{true}(graph)
8182
ict = IncrementalCycleTracker(vargraph; dir = :in)

0 commit comments

Comments
 (0)