from classes.Individuals.Node import Node


class Connection:
    def __init__(self, from_node, to_node, innovation_number):
        self.innovation_number = innovation_number
        self.from_node: Node = from_node
        self.to_node: Node = to_node
        self.weight = 0
        self.is_enabled = True

    def clone(self):
        return Connection(self.from_node.clone(), self.to_node.clone(), self.innovation_number)
