pan class="k">if</span> <span class="n">symmetric</span> <span class="ow">and</span> <span class="n">j</span> <span class="o">&lt;</span> <span class="n">i</span><span class="p">:</span>
                    <span class="k">continue</span>

                <span class="n">x_i</span> <span class="o">=</span> <span class="n">x</span><span class="p">[</span><span class="n">i</span><span class="p">]</span>

                <span class="c1"># Save time on symmetry</span>
                <span class="k">if</span> 