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

Method reset_traversal_state

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

Reset all traversal state (visited, on_stack, etc.) on vertices. This is useful when re-traversing the graph.

(&mut self)

Source from the content-addressed store, hash-verified

388 ///
389 /// This is useful when re-traversing the graph.
390 pub fn reset_traversal_state(&mut self) {
391 for v in &mut self.vertices {
392 v.set_flags(VertexFlags::empty());
393 v.index = 0;
394 v.lowlink = 0;
395 v.scc = 0;
396 }
397 }
398}
399
400impl Default for AliveGraph {

Callers 1

Calls 1

set_flagsMethod · 0.80

Tested by 1