NetworkX

Previous topic

networkx.topological_sort

Next topic

networkx.is_directed_acyclic_graph

Quick search

networkx.topological_sort_recursive

topological_sort_recursive(G)

Return a list of nodes of the digraph G in topological sort order.

This is a recursive version of topological sort.