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

Method push_vertex

atomic-core/src/output/alive/graph.rs:184–189  ·  view source on GitHub ↗

Push a span onto the graph. Returns the `VertexId` assigned to this span. # Arguments `span` - The span to add # Returns The ID that can be used to reference this span.

(&mut self, vertex: AliveVertex)

Source from the content-addressed store, hash-verified

182 ///
183 /// The ID that can be used to reference this span.
184 pub fn push_vertex(&mut self, vertex: AliveVertex) -> VertexId {
185 let id = VertexId::new(self.vertices.len());
186 self.total_bytes += vertex.len();
187 self.vertices.push(vertex);
188 id
189 }
190
191 /// Push a child entry to the children array.
192 ///

Callers 15

test_graph_push_vertexFunction · 0.80
test_graph_vertex_accessFunction · 0.80
test_graph_get_childFunction · 0.80
test_graph_child_countFunction · 0.80
test_graph_iter_verticesFunction · 0.80

Calls 2

lenMethod · 0.45
pushMethod · 0.45

Tested by 15

test_graph_push_vertexFunction · 0.64
test_graph_vertex_accessFunction · 0.64
test_graph_get_childFunction · 0.64
test_graph_child_countFunction · 0.64
test_graph_iter_verticesFunction · 0.64