Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ fn compute_scc_recursive<Node: GraphNode>(ctx: &mut SccAlgoContext<Node>, curren
}
};

// Update current_node in ctx.known_nodes.
ctx.known_nodes.insert(current_node_id.clone(), current_wrapper_node.clone());
// Update current_node in ctx.known_nodes without re-cloning the wrapper node.
let wrapper_node = ctx.known_nodes.get_mut(&current_node_id).unwrap();
wrapper_node.lowlink = current_wrapper_node.lowlink;
}

if current_wrapper_node.lowlink != current_wrapper_node.index {
Expand Down