def bfs_predecessors(G, source):
    return dict((t,s) for s,t in bfs_edges(G,source))
Return dictionary of predecessors in breadth-first-search from source.
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/traversal/breadth_first_search.py/bfs_predecessors