networkx.floyd_warshall
networkx.dfs_postorder
Return list of nodes connected to source in depth-first-search preorder.
Traverse the graph G with depth-first-search from source. Non-recursive algorithm.