def has_node(self, n):
        try:
            return n in self.node
        except TypeError:
            return False
Return True if the graph contains the node n.
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/classes/graph.py/Graph.has_node