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

Method get_vertex

atomic-core/src/output/alive/graph.rs:238–240  ·  view source on GitHub ↗
(&self, id: VertexId)

Source from the content-addressed store, hash-verified

236 /// Panics if the ID is out of bounds.
237 #[inline]
238 pub fn get_vertex(&self, id: VertexId) -> &AliveVertex {
239 &self.vertices[id.index()]
240 }
241
242 /// Get a mutable reference to a span by ID.
243 ///

Callers 7

test_graph_vertex_accessFunction · 0.80
compute_orderFunction · 0.80
tarjan_visitFunction · 0.80
retrieve_graphFunction · 0.80
walk_through_deadFunction · 0.80

Calls 1

indexMethod · 0.45

Tested by 2

test_graph_vertex_accessFunction · 0.64