NetworkX

Previous topic

dfs_successors

Next topic

dfs_postorder_nodes

dfs_preorder_nodes

dfs_preorder_nodes(G, source=None)[source]

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