 calculate them if needed.
        autocurve = kwds.get(&#34;autocurve&#34;, None)
        if autocurve or (
            autocurve is None
            and &#34;edge_curved&#34; not in kwds
            and &#34;curved&#34; not in graph.edge_attributes()
            and graph.ecount() &lt; 10000
        ):
            from igraph import autocurve

            default = kwds.get(&#34;edge_curved&#34;, 0)
            if default is True:
                default = 0.5
            default = float(default)
        