      g_\omega(e) = \max \{ g_\omega(v) \mid  v \in e \}</span>

<span class="sd">        in the direction of :math:`\\theta \in [0,2\pi]` .</span>

<span class="sd">        Parameters:</span>
<span class="sd">            theta (float):</span>
<span class="sd">                The angle in :math:`[0,2\pi]` for the direction to sort the edges.</span>
<span class="sd">            return_g (bool):</span>
<span class="sd">                Whether to return the :math:`g(v)` values along with the sorted edges.</spa