This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.
- non_neighbors(graph, node)¶
Returns the non-neighbors of the node in the graph.
graph : NetworkX graph
Graph to find neighbors.
node : node
The node whose neighbors will be returned.
non_neighbors : iterator
Iterator of nodes in the graph that are not neighbors of the node.