NetworkX

Previous topic

networkx.algorithms.traversal.depth_first_search.dfs_postorder_nodes

Next topic

networkx.algorithms.traversal.breadth_first_search.bfs_edges

networkx.algorithms.traversal.depth_first_search.dfs_labeled_edges

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

Produce edges in a depth-first-search starting at source and labeled by direction type (forward, reverse, nontree).