def neighbors(self, n):
        try:
            return list(self.adj[n])
        except KeyError:
            raise NetworkXError("The node %s is not in the graph."%(n,))
Return a list of the nodes connected to the node n.
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/classes/graph.py/Graph.neighbors