MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / make_simple_graph

Function make_simple_graph

atomic-core/src/output/repo/content.rs:818–825  ·  view source on GitHub ↗

Create a minimal alive graph with one node

(node: GraphNode<NodeId>)

Source from the content-addressed store, hash-verified

816
817 /// Create a minimal alive graph with one node
818 fn make_simple_graph(node: GraphNode<NodeId>) -> AliveGraph {
819 let mut graph = AliveGraph::new();
820 // Push dummy vertex first (required at index 0)
821 graph.push_vertex(AliveVertex::DUMMY);
822 // Push our actual node
823 graph.push_vertex(AliveVertex::new(node));
824 graph
825 }
826
827 /// Create a simple order result with one SCC containing one vertex
828 /// Note: index 0 is DUMMY, so our vertex is at index 1

Calls 1

push_vertexMethod · 0.80