Skip to content

Commit c6fe424

Browse files
fix: make ignored causal connections affect equivalent Equality connections
1 parent 9153443 commit c6fe424

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/systems/connectors.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,16 @@ function _generate_connectionsets!(connection_state::AbstractConnectionState,
468468
[namespace; var_ns], length(var_ns) == 1 || isouter(var_ns[1]), type)
469469
end
470470
add_connection_edge!(connection_state, hyperedge)
471+
472+
# Removed analysis points generate causal connections in the negative graph. These
473+
# should also remove `Equality` connections involving the same variables, so also
474+
# add an `Equality` variant of the edge.
475+
if connection_state isa NegativeConnectionState
476+
hyperedge = map(hyperedge) do cvert
477+
ConnectionVertex(cvert.name, cvert.isouter, Equality)
478+
end
479+
add_connection_edge!(connection_state, hyperedge)
480+
end
471481
end
472482
end
473483

0 commit comments

Comments
 (0)