ass="s2">&quot;and will be deprecated soon.&quot;</span><span class="p">,</span>
                <span class="ne">DeprecationWarning</span><span class="p">,</span>
            <span class="p">)</span>

        <span class="c1"># Some abbreviations for sake of simplicity</span>
        <span class="n">directed</span> <span class="o">=</span> <span class="n">graph</span><span class="o">.</span><span class="n">is_directed</span><span class="p">()</span>
        <span class="n">ax</span> <span class="o">=</span