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

Function make_vertex

atomic-core/src/output/repo/fork.rs:184–190  ·  view source on GitHub ↗
(change: u64, start: u64, end: u64)

Source from the content-addressed store, hash-verified

182 };
183
184 fn make_vertex(change: u64, start: u64, end: u64) -> GraphNode<NodeId> {
185 GraphNode::new(
186 NodeId::new(change),
187 ChangePosition::new(start),
188 ChangePosition::new(end),
189 )
190 }
191
192 /// Build a graph where the vertex at `parent_idx` has the given child
193 /// vertex indices. Vertices are pushed in order 0..N where 0 is DUMMY.

Callers 6

no_fork_single_childFunction · 0.70
three_way_forkFunction · 0.70
no_children_at_allFunction · 0.70

Calls

no outgoing calls

Tested by 6

no_fork_single_childFunction · 0.56
three_way_forkFunction · 0.56
no_children_at_allFunction · 0.56