Exemple #1
0
        protected override ConnectionGene CreateConnectionGene(uint innovationNumber, uint inNodeId, uint outNodeId, double weight, bool enabled = true)
        {
            EvaluatableConnectionGene connection = new EvaluatableConnectionGene(Id, innovationNumber, inNodeId, outNodeId, weight, enabled);

            // Create a new connection gene from the start and end nodes.
            return(connection);
        }
 public void AddDependency(EvaluatableConnectionGene connectionGene)
 {
     throw new Exception("Input nodes are not allowed to have connections from other nodes as input.");
 }
Exemple #3
0
 public void AddDependency(EvaluatableConnectionGene connectionGene)
 {
     _connectionGenes.Add(connectionGene);
 }