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

Function make_simple_graph

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

Create a minimal alive graph with one node

(node: GraphNode<NodeId>)

Source from the content-addressed store, hash-verified

760
761 /// Create a minimal alive graph with one node
762 fn make_simple_graph(node: GraphNode<NodeId>) -> AliveGraph {
763 let mut graph = AliveGraph::new();
764 // Push dummy vertex first (required at index 0)
765 graph.push_vertex(AliveVertex::DUMMY);
766 // Push our actual node
767 graph.push_vertex(AliveVertex::new(node));
768 graph
769 }
770
771 /// Create a simple order result with one SCC containing one vertex
772 /// Note: index 0 is DUMMY, so our vertex is at index 1

Calls 1

push_vertexMethod · 0.80