Warning

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

networkx.classes.function.neighbors

neighbors(G, n)[source]

Return a list of nodes connected to node n.