 graph
        layout = self.ensure_layout(kwds.get(&#34;layout&#34;, None), graph)

        # Decide whether we need to calculate the curvature of edges
        # automatically -- and 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 igrap