NetworkX

Previous topic

networkx.algorithms.traversal.breadth_first_search.bfs_tree

Next topic

networkx.algorithms.traversal.breadth_first_search.bfs_successors

networkx.algorithms.traversal.breadth_first_search.bfs_predecessors

networkx.algorithms.traversal.breadth_first_search.bfs_predecessors(G, source)

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