networkx.neighbors

networkx.neighbors(G, n)[source]

Return a list of nodes connected to node n.