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

Method vertex_mut

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

Source from the content-addressed store, hash-verified

246 /// Panics if the ID is out of bounds.
247 #[inline]
248 pub fn vertex_mut(&mut self, id: VertexId) -> &mut AliveVertex {
249 &mut self.vertices[id.index()]
250 }
251
252 /// Get a span by ID, returning None if out of bounds.
253 #[inline]

Callers 3

test_graph_vertex_accessFunction · 0.80
tarjan_visitFunction · 0.80

Calls 1

indexMethod · 0.45

Tested by 2

test_graph_vertex_accessFunction · 0.64