graphscope.nx.classes.function.non_neighbors

graphscope.nx.classes.function.non_neighbors(graph, node)[source]

Returns the non-neighbors of the node in the graph.

Parameters:
  • graph (NetworkX graph) – Graph to find neighbors.

  • node (node) – The node whose neighbors will be returned.

Returns:

non_neighbors – Iterator of nodes in the graph that are not neighbors of the node.

Return type:

iterator