Clear the graph, removing all vertices and children. This does not deallocate the underlying storage.
(&mut self)
| 402 | /// |
| 403 | /// This does not deallocate the underlying storage. |
| 404 | pub fn clear(&mut self) { |
| 405 | self.vertices.clear(); |
| 406 | self.children.clear(); |
| 407 | self.total_bytes = 0; |
| 408 | } |
| 409 | |
| 410 | /// Reset all traversal state (visited, on_stack, etc.) on vertices. |
| 411 | /// |