NetworkX

Previous topic

bfs_tree

Next topic

bfs_successors

bfs_predecessors

bfs_predecessors(G, source)[source]

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