NetworkX

Previous topic

bfs_edges

Next topic

bfs_predecessors

bfs_tree

bfs_tree(G, source)[source]

Return directed tree of breadth-first-search from source.