diff --git a/crates/synthizer/src/data_structures/graph.rs b/crates/synthizer/src/data_structures/graph.rs index 3aab589..d72f70f 100644 --- a/crates/synthizer/src/data_structures/graph.rs +++ b/crates/synthizer/src/data_structures/graph.rs @@ -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