PGA/route.py
def is_equal(self, route):
        """
        examine whether this route is equal to another route
        :param route: another route
        :return: True if equal
        """
        if len(self.sequence) != len(route.sequence) or self.cost != route.cost:
            return False
        for node1, node2 in zip(self.sequence, route.sequence):
            if node1 != node2:
                return False
        return True

        examine whether this route is equal to another route
        :param route: another route
        :return: True if equal
        
examine whether this route is equal to another route
examine whether this route is equal to another route
def is_equal(self, route):
        if len(self.sequence) != len(route.sequence) or self.cost != route.cost:
            return False
        for node1, node2 in zip(self.sequence, route.sequence):
            if node1 != node2:
                return False
        return True
def is_equal ( self , route ) : if len ( self . sequence ) != len ( route . sequence ) or self . cost != route . cost : return False for node1 , node2 in zip ( self . sequence , route . sequence ) : if node1 != node2 : return False return True
examine whether this route is equal to another route
examine whether this route is equal to another route
"""
        examine whether this route is equal to another route
        :param route: another route
        :return: True if equal
        """
True if equal
True if equal
self
route
None