File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -164,18 +164,14 @@ end
164164Find strongly connected components of the variables defined by `g`. `assign`
165165gives the undirected bipartite graph a direction. When `assign === nothing`, we
166166assume that the ``i``-th variable is assigned to the ``i``-th equation.
167-
168- If `topsort == true`, topologically sort the SCCs.
169167"""
170- function find_var_sccs(g:: BipartiteGraph , assign = nothing ; topsort = false )
168+ function find_var_sccs(g:: BipartiteGraph , assign = nothing )
171169 cmog = DiCMOBiGraph{true }(g,
172170 Matching(assign === nothing ? Base. OneTo(nsrcs(g)) : assign))
173171 sccs = Graphs. strongly_connected_components(cmog)
174- if topsort
175- cgraph = MatchedCondensationGraph(cmog, sccs)
176- toporder = topological_sort(cgraph)
177- sccs = sccs[toporder]
178- end
172+ cgraph = MatchedCondensationGraph(cmog, sccs)
173+ toporder = topological_sort(cgraph)
174+ sccs = sccs[toporder]
179175 foreach(sort!, sccs)
180176 return sccs
181177end
You can’t perform that action at this time.
0 commit comments