networkx.dfs_preorder
networkx.dfs_predecessor
Enter search terms or a module, class or function name.
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.