1
Fork 0

Add an opt-in to store incoming edges in VecGraph + some docs

This commit is contained in:
Maybe Waffle 2024-04-15 18:14:28 +00:00
parent 3493a56529
commit 86a576528c
2 changed files with 193 additions and 57 deletions

View file

@ -382,7 +382,7 @@ impl<'tcx> MiniGraph<'tcx> {
edges.push((source_node, target_node));
},
);
let graph = VecGraph::new(nodes.len(), edges);
let graph = VecGraph::<_, false>::new(nodes.len(), edges);
let sccs = Sccs::new(&graph);
Self { nodes, sccs }
}