

            <span class="n">L</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">nx</span><span class="o">.</span><span class="n">connected_components</span><span class="p">(</span><span class="n">nx</span><span class="o">.</span><span class="n">induced_subgraph</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span><span class="n">verts</span><span class="p">)))</span>
            <span class="k">for</span> <span class="n">cc_lis