The Topological represents a data type for determining a topological order of a directed acyclic graph (DAG). A digraph has a topological order if and only if it is a DAG. The has_order operation determines whether the digraph has a topological order, and if so, the order operation returns one. This implementation uses depth-first search.
| 12 | /// returns one. |
| 13 | /// This implementation uses depth-first search. |
| 14 | pub struct Topological { |
| 15 | order: Option<Vec<usize>>, |
| 16 | } |
| 17 | |
| 18 | impl Topological { |
| 19 | /// Does the digraph have a topological order? |
nothing calls this directly
no outgoing calls
no test coverage detected