toposort_strict

Function toposort_strict 

Source
pub fn toposort_strict<G>(graph: &G) -> Result<Vec<G::V>, G::V>
where G: FinGraph, G::V: Hash + Debug,
Expand description

Implementation of topological sort which returns an error when it encounters a cycle.