span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">site_i</span><span class="p">)</span>

        <span class="k">for</span> <span class="n">site_j</span> <span class="ow">in</span> <span class="n">bonded_structure</span><span class="o">.</span><span class="n">get_connected_sites</span><span class="p">(</span>
                <span class="n">comp_i</span><span class="p">,</span> <span class="n">jimage</span><span class="o">=</span><span class="n">image_i</span><span 