def neighbors(self, n):
        """Return an iterator over all neighbors of node n in the 
           dense graph.

        """
        try:
            return iter(set(self.adj) - set(self.adj[n]) - set([n]))
        except __HOLE__:
            raise NetworkXError("The node %s is not in the graph."%(n,))
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/approximation/kcomponents.py/_AntiGraph.neighbors