ot;</span>
    <span class="kn">import</span> <span class="nn">networkx</span> <span class="k">as</span> <span class="nn">nx</span>  <span class="c1"># optional dependency therefore not top level import</span>

    <span class="n">comp_graphs</span> <span class="o">=</span> <span class="p">(</span><span class="n">bonded_structure</span><span class="o">.</span><span class="n">graph</span><span class="o">.</span><span class="n">subgraph</span><span class="p">(</span><span class="n">c</span><span class="p">)</