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

<span class="sd">        Returns:</span>
<span class="sd">            list</span>
<span class="sd">                A list of vertices sorted in increasing order of the :math:`g(v)` values.