We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
find_var_sccs
1 parent 9dbf140 commit 582ebd2Copy full SHA for 582ebd2
src/structural_transformation/utils.jl
@@ -153,6 +153,9 @@ function find_var_sccs(g::BipartiteGraph, assign = nothing)
153
cmog = DiCMOBiGraph{true}(g,
154
Matching(assign === nothing ? Base.OneTo(nsrcs(g)) : assign))
155
sccs = Graphs.strongly_connected_components(cmog)
156
+ cgraph = MatchedCondensationGraph(cmog, sccs)
157
+ toporder = topological_sort(cgraph)
158
+ permute!(sccs, toporder)
159
foreach(sort!, sccs)
160
return sccs
161
end
0 commit comments