Function dfir_lang::graph::graph_algorithms::topo_sort_scc

source ยท
pub fn topo_sort_scc<Id, NodesFn, NodeIds, PredsFn, SuccsFn, PredsIter, SuccsIter>(
    nodes_fn: NodesFn,
    preds_fn: PredsFn,
    succs_fn: SuccsFn,
) -> Vec<Id>
where Id: Copy + Eq + Ord, NodesFn: FnMut() -> NodeIds, NodeIds: IntoIterator<Item = Id>, PredsFn: FnMut(Id) -> PredsIter, SuccsFn: FnMut(Id) -> SuccsIter, PredsIter: IntoIterator<Item = Id>, SuccsIter: IntoIterator<Item = Id>,
Expand description

Computes the topological sort of the nodes of a possibly cyclic graph by ordering strongly connected components together.