class Node: def __init__(self, x, y): self.x = x self.y = y self.path_x = [] self.path_y = [] self.parent = None