<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r69394865">src/mlpack/methods/ne/genome.hpp</a>:</p>
<pre style='color:#555'>&gt; +    return aLinkGenes.size();
&gt; +  }
&gt; +
&gt; +  // Whether specified neuron id exist in this genome.
&gt; +  bool HasNeuronId(ssize_t id) const {
&gt; +    for (ssize_t i=0; i&lt;NumNeuron(); ++i) {
&gt; +      if (aNeuronGenes[i].Id() == id) {
&gt; +        return true;
&gt; +      }
&gt; +    }
&gt; +    
&gt; +    return false;
&gt; +  }
&gt; +
&gt; +  // Get neuron by id.
&gt; +  NeuronGene GetNeuronById(ssize_t id) {
</pre>
<p>Good idea, revised!</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/554a279b0089e4385dfb40077e578d6ae2a42ece#r69394865">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFBeCLd_EHsaUX602NDvvH4aS54p0ks5qR_KIgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFFfgh1vJGK6ZW_77B--icBrRy0oLks5qR_KIgaJpZM4IwJa6.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/554a279b0089e4385dfb40077e578d6ae2a42ece#r69394865"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>