Function pathfinding::directed::strongly_connected_components::strongly_connected_components[][src]

pub fn strongly_connected_components<N, FN, IN>(
    nodes: &[N],
    successors: FN
) -> Vec<Vec<N>> where
    N: Clone + Hash + Eq,
    FN: FnMut(&N) -> IN,
    IN: IntoIterator<Item = N>, 

Partition all strongly connected components in a graph.

The function returns a list of strongly connected components sets.