Get the total number of vertices across all SCCs.
(&self)
| 315 | |
| 316 | /// Get the total number of vertices across all SCCs. |
| 317 | pub fn total_vertices(&self) -> usize { |
| 318 | self.sccs.iter().map(|scc| scc.len()).sum() |
| 319 | } |
| 320 | |
| 321 | /// Get the number of SCCs. |
| 322 | pub fn num_sccs(&self) -> usize { |