NetworkX

Previous topic

bfs_edges

Next topic

bfs_predecessors

bfs_tree

static breadth_first_search.bfs_tree(G, source)

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