<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r66378903">src/mlpack/methods/ne/gene.hpp</a>:</p>
<pre style='color:#555'>&gt; +
&gt; +  // Destructor.
&gt; +  ~LinkGene() {}
&gt; +
&gt; +  // Get aFromNeuronId.
&gt; +  unsigned int FromNeuronId() const { return aFromNeuronId; }
&gt; +
&gt; +  // Get aToNeuronId.
&gt; +  unsigned int ToNeuronId() const { return aToNeuronId; }
&gt; +
&gt; +  // Get aInnovationId.
&gt; +  unsigned int InnovationId() const { return aInnovationId; }
&gt; +
&gt; +  // Set aWeight.
&gt; +  void Weight(double weight) { aWeight = weight; }
&gt; +
</pre>
<p><a href="https://github.com/zoq" class="user-mention">@zoq</a> Aside from using double&amp; Weight() { return weight; } for weight, do you think it is better to use this style for set/get values of all other class members?</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/3c8aa62b951f029b3883e9baef1ea556ef5af2d3#r66378903">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFNcXnKSEeRlIfGaXK3SHwQ3Nnvl5ks5qJ4xZgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFI7O8kT0qwrPz6PZtC7PMbkIF3Dsks5qJ4xZgaJpZM4IwJa6.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/3c8aa62b951f029b3883e9baef1ea556ef5af2d3#r66378903"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>