NetworkX

Previous topic

dfs_tree

Next topic

dfs_successors

dfs_predecessors

static depth_first_search.dfs_predecessors(G, source=None)

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