Skip to content

Commit

Permalink
Synthizer: fix a typo that would crash the graph if a node with incom…
Browse files Browse the repository at this point in the history
…ing edges deregisters before the incoming node

Simple backwards field, the other end of tan incoming edge is the outgoing end
  • Loading branch information
ahicks92 committed Mar 9, 2024
1 parent e8dd632 commit 1ab2c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/synthizer/src/data_structures/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl Graph {
// The outgoing set points at unique incoming nodes.
.map(|x| x.incoming_node)
// The incoming set points at unique outgoing nodes.
.chain(node.incoming.into_iter().map(|x| x.incoming_node))
.chain(node.incoming.into_iter().map(|x| x.outgoing_node))
{
let node = self.nodes.get_mut(&id).expect("Node must be present");
node.outgoing
Expand Down

0 comments on commit 1ab2c21

Please sign in to comment.