NetworkX

Previous topic

dfs_tree

Next topic

dfs_successors

dfs_predecessors

dfs_predecessors(G, source=None)[source]

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