File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
structural_transformation Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -589,10 +589,10 @@ end
589
589
590
590
591
591
Graphs. outneighbors (mcg:: MatchedCondensationGraph , cc:: Integer ) =
592
- Iterators. flatten ((mcg. scc_assignment[v′] for v′ in outneighbors (mcg. graph, v)) for v in mcg. sccs[cc])
592
+ Iterators. flatten ((mcg. scc_assignment[v′] for v′ in outneighbors (mcg. graph, v) if mcg . scc_assignment[v′] != cc ) for v in mcg. sccs[cc])
593
593
594
594
Graphs. inneighbors (mcg:: MatchedCondensationGraph , cc:: Integer ) =
595
- Iterators. flatten ((mcg. scc_assignment[v′] for v′ in inneighbors (mcg. graph, v)) for v in mcg. sccs[cc])
595
+ Iterators. flatten ((mcg. scc_assignment[v′] for v′ in inneighbors (mcg. graph, v) if mcg . scc_assignment[v′] != cc ) for v in mcg. sccs[cc])
596
596
597
597
"""
598
598
struct InducedCondensationGraph
Original file line number Diff line number Diff line change @@ -174,8 +174,9 @@ function build_torn_function(
174
174
state = TearingState (sys)
175
175
fullvars = state. fullvars
176
176
var_eq_matching, var_sccs = algebraic_variables_scc (state)
177
- toporder = reverse (topological_sort_by_dfs (MatchedCondensationGraph (
178
- DiCMOBiGraph {true} (complete (state. structure. graph), complete (var_eq_matching)), var_sccs)))
177
+ condensed_graph = MatchedCondensationGraph (
178
+ DiCMOBiGraph {true} (complete (state. structure. graph), complete (var_eq_matching)), var_sccs)
179
+ toporder = topological_sort_by_dfs (condensed_graph)
179
180
var_sccs = var_sccs[toporder]
180
181
181
182
states = map (i-> fullvars[i], diffvars_range (state. structure))
You can’t perform that action at this time.
0 commit comments