Does the digraph have a topological order? true if the digraph has a topological order (or equivalently, if the digraph is a DAG), and false otherwise
(&self)
| 20 | /// true if the digraph has a topological order (or equivalently, |
| 21 | /// if the digraph is a DAG), and false otherwise |
| 22 | pub fn has_order(&self) -> bool { |
| 23 | self.order.is_some() |
| 24 | } |
| 25 | |
| 26 | /// Returns a topological order if the digraph has a topologial order, |
| 27 | /// and None otherwise. |