Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

networkx.DiGraph.neighbors

DiGraph.neighbors(n)

Return an iterator over successor nodes of n.

neighbors() and successors() are the same.