(self, a, b)
Add an edge between two nodes, if the nodes
        doesn't exists, they will be created

        :param a: the first node
        :param b: the second node
Add an edge between two nodes, if the nodes
        doesn't exists, they will be created
Add an edge between two nodes if the nodes doesn t exists they will be created
def addEdge(self, a, b):
        """ Add an edge between two nodes, if the nodes
        doesn't exists, they will be created

        :param a: the first node
        :param b: the second node
        """
        if a not in self.adjacent:
            self.adjacent[a] = {}

        if b not in self.adjacent:
            self.adjacent[b] = {}

        self.adjacent[a][b] = True
        self.adjacent[b][a] = True
def addEdge ( self , a , b ) : if a not in self . adjacent : self . adjacent [ a ] = { } if b not in self . adjacent : self . adjacent [ b ] = { } self . adjacent [ a ] [ b ] = True self . adjacent [ b ] [ a ] = True