nit: fix all_sccs
comment
This commit is contained in:
parent
0472da3ed6
commit
eed2c09a64
@ -54,7 +54,7 @@ impl<N: Idx, S: Idx> Sccs<N, S> {
|
||||
self.scc_data.len()
|
||||
}
|
||||
|
||||
/// Returns the number of SCCs in the graph.
|
||||
/// Returns an iterator over the SCCs in the graph.
|
||||
pub fn all_sccs(&self) -> impl Iterator<Item = S> {
|
||||
(0 .. self.scc_data.len()).map(S::new)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user