NetworkX

Previous topic

bfs_successors

Next topic

dfs_tree

dfs_edges

dfs_edges(G, source=None)[source]

Produce edges in a depth-first-search starting at source.