neighbors#

neighbors(G, n)[source]#

Returns an iterator over all neighbors of node n.

This function wraps the G.neighbors function.