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