NetworkX

Previous topic

dfs_postorder_nodes

Next topic

bfs_edges

dfs_labeled_edges

dfs_labeled_edges(G, source=None)[source]

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