def __init__(self, location, address=None): NODE.__init__(self, location, address = address) self.neighbours = {} self.routes = {} self.spcost = {} self.routes[self.address] = 'self' self.spcost[self.address] = 0
def __init__(self, location, address=None): NODE.__init__(self, location, address=address) self.neighbours = {} self.routes = {} self.spcost = {} self.routes[self.address] = 'self' self.spcost[self.address] = 0
def __init__(self): Node.__init__(self)
def __init__(self, execute_fn): Node.__init__(self) self.execute_fn = execute_fn