Iterate over all vertices mutably.
(&mut self)
| 369 | |
| 370 | /// Iterate over all vertices mutably. |
| 371 | pub fn iter_vertices_mut(&mut self) -> impl Iterator<Item = (VertexId, &mut AliveVertex)> { |
| 372 | self.vertices |
| 373 | .iter_mut() |
| 374 | .enumerate() |
| 375 | .map(|(i, v)| (VertexId::new(i), v)) |
| 376 | } |
| 377 | |
| 378 | /// Get statistics about this graph. |
| 379 | pub fn stats(&self) -> GraphStats { |