2">&quot;curved&quot;</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">graph</span><span class="o">.</span><span class="n">edge_attributes</span><span class="p">()</span>
            <span class="ow">and</span> <span class="n">graph</span><span class="o">.</span><span class="n">ecount</span><span class="p">()</span> <span class="o">&lt;</span> <span class="mi">10000</span>
        <span class="p">):</span>
            <span class="kn">from</span> <span class="nn">igraph</span> <