NetworkX

Previous topic

networkx.algorithms.traversal.depth_first_search.dfs_tree

Next topic

networkx.algorithms.traversal.depth_first_search.dfs_successors

networkx.algorithms.traversal.depth_first_search.dfs_predecessors

networkx.algorithms.traversal.depth_first_search.dfs_predecessors(G, source=None)

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