The nonneighbors of a vertex v are all the vertexSet of G that are not adjacent to v. That is, if u is a nonneighbor to v, {u,v} is not an edge in G.


The object nonneighbors is a method function.