/ NEAT / connectiongene.py
connectiongene.py
 1  class ConnectionGene:
 2      def __init__(self, into: int, out: int, innovation: int, weight: float, enabled: bool):
 3          self.into: int = into
 4          self.out: int = out
 5          self.innovation: int = innovation
 6          self.weight: float = weight
 7          self.enabled: bool = enabled
 8  
 9      def copy(self) -> 'ConnectionGene':
10          return ConnectionGene(self.into, self.out, self.innovation, self.weight, self.enabled)