Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

networkx.classes.function.neighbors

neighbors(G, n)[source]

Returns a list of nodes connected to node n.