Reset all traversal state (visited, on_stack, etc.) on vertices. This is useful when re-traversing the graph.
(&mut self)
| 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 | |
| 423 | impl Default for AliveGraph { |