Function petgraph::algo::toposort  
                   
                       [−]
                   
               [src]
pub fn toposort<N, E, Ix>(g: &Graph<N, E, Directed, Ix>) -> Vec<NodeIndex<Ix>> where
    Ix: IndexType, Perform a topological sort of a directed graph.
Return a vector of nodes in topological order: each node is ordered before its successors.
If the returned vec contains less than all the nodes of the graph, then the graph was cyclic.