<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r71069041">src/mlpack/tests/ne_test.cpp</a>:</p>
<pre style='color:#555'>&gt; +  std::vector&lt;NeuronGene&gt; neuronGenes;
&gt; +  std::vector&lt;LinkGene&gt; linkGenes;
&gt; +
&gt; +  NeuronGene inputGene1(0, INPUT, LINEAR, 0, 0, 0);
&gt; +  NeuronGene inputGene2(1, INPUT, LINEAR, 0, 0, 0);
&gt; +  NeuronGene biasGene(2, BIAS, LINEAR, 0, 0, 0);
&gt; +  NeuronGene outputGene(3, OUTPUT, SIGMOID, 1, 0, 0);
&gt; +  NeuronGene hiddenGene(4, HIDDEN, SIGMOID, 0.5, 0, 0);
&gt; +
&gt; +  neuronGenes.push_back(inputGene1);
&gt; +  neuronGenes.push_back(inputGene2);
&gt; +  neuronGenes.push_back(biasGene);
&gt; +  neuronGenes.push_back(outputGene);
&gt; +  neuronGenes.push_back(hiddenGene);
&gt; +
&gt; +  LinkGene link1(0, 3, 0, 1, true);
</pre>
<p>Maybe I missed something but I think each link should have a different innovation number.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/686/files/fc982b9406838eb9697000481e816165702e8ba9#r71069041">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFCn0wHdy3mqjzQxE1X4osQKdDhMvks5qWRGmgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFJ1nEPeTKgwUHAXJXM8cyNCm7-D-ks5qWRGmgaJpZM4IwJa6.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/686/files/fc982b9406838eb9697000481e816165702e8ba9#r71069041"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>