networkx.topological_sort
networkx.is_directed_acyclic_graph
Return a list of nodes of the digraph G in topological sort order.
This is a recursive version of topological sort.