Returns a topological order if the digraph has a topologial order, and None otherwise.
(&self)
| 26 | /// Returns a topological order if the digraph has a topologial order, |
| 27 | /// and None otherwise. |
| 28 | pub fn order(&self) -> Option<Iter<'_, usize>> { |
| 29 | self.order.as_ref().map(|v| v.iter()) |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | macro_rules! impl_from { |