NetworkX

Previous topic

networkx.algorithms.traversal.depth_first_search.dfs_successors

Next topic

networkx.algorithms.traversal.depth_first_search.dfs_postorder_nodes

networkx.algorithms.traversal.depth_first_search.dfs_preorder_nodes

networkx.algorithms.traversal.depth_first_search.dfs_preorder_nodes(G, source=None)

Produce nodes in a depth-first-search pre-ordering starting at source.