n class="n">deepcopy</span><span class="p">(</span><span class="n">ring</span><span class="p">)</span>
                        <span class="n">neighbors</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">molgraph</span><span class="o">.</span><span class="n">graph</span><span class="p">[</span><span class="n">node</span><span class="p">]</span>

                        <span class="c1"># Add hydrogens to the functional group</span>
                        <sp