NetworkX

Previous topic

networkx.dfs_preorder

Next topic

networkx.dfs_predecessor

networkx.dfs_postorder

dfs_postorder(G, source=None, reverse_graph=False)

Return list of nodes connected to source in depth-first-search postorder.

Traverse the graph G with depth-first-search from source. Non-recursive algorithm.