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

Method reset_traversal_state

atomic-core/src/output/alive/graph.rs:413–420  ·  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

411 ///
412 /// This is useful when re-traversing the graph.
413 pub fn reset_traversal_state(&mut self) {
414 for v in &mut self.vertices {
415 v.set_flags(VertexFlags::empty());
416 v.index = 0;
417 v.lowlink = 0;
418 v.scc = 0;
419 }
420 }
421}
422
423impl Default for AliveGraph {

Callers 1

Calls 1

set_flagsMethod · 0.80

Tested by 1