NetworkX

Previous topic

bfs_tree

Next topic

bfs_successors

bfs_predecessors

static breadth_first_search.bfs_predecessors(G, source)

Return dictionary of predecessors in breadth-first-search from source.