def non_neighbors(graph, node):
 nbors = (set(neighbors(graph, node)) | {node})
 return (nnode for nnode in graph if (nnode not in nbors))

def non_neighbors ( graph , node ) : nbors = ( set ( neighbors ( graph , node ) ) | { node } ) return ( nnode for nnode in graph if ( nnode not in nbors ) )
returns the non-neighbors of the node in the graph .