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

Function make_simple_graph

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

Create a minimal alive graph with one node

(node: GraphNode<NodeId>)

Source from the content-addressed store, hash-verified

793
794 /// Create a minimal alive graph with one node
795 fn make_simple_graph(node: GraphNode<NodeId>) -> AliveGraph {
796 let mut graph = AliveGraph::new();
797 // Push dummy vertex first (required at index 0)
798 graph.push_vertex(AliveVertex::DUMMY);
799 // Push our actual node
800 graph.push_vertex(AliveVertex::new(node));
801 graph
802 }
803
804 /// Create a simple order result with one SCC containing one vertex
805 /// Note: index 0 is DUMMY, so our vertex is at index 1

Calls 1

push_vertexMethod · 0.80