(tri, skeleton)
return tuple(sorted(sorted_candidates[0], key=default_sort_key))
For a given triangle always picks the same root edge.  The
        root edge is the edge that will be placed first on the grid.
For a given triangle always picks the same root edge.  The
        root edge is the edge that will be placed first on the grid.
For a given triangle always picks the same root edge . The root edge is the edge that will be placed first on the grid .
def _pick_root_edge(tri, skeleton):
        """
        For a given triangle always picks the same root edge.  The
        root edge is the edge that will be placed first on the grid.
        """
        candidates = [sorted(e, key=default_sort_key)
                      for e in tri if skeleton[e]]
        sorted_candidates = sorted(candidates, key=default_sort_key)
        # Don't forget to assure the proper ordering of the vertices
        # in this edge.
        return tuple(sorted(sorted_candidates[0], key=default_sort_key))
def _pick_root_edge ( tri , skeleton ) : candidates = [ sorted ( e , key = default_sort_key ) for e in tri if skeleton [ e ] ] sorted_candidates = sorted ( candidates , key = default_sort_key ) # Don't forget to assure the proper ordering of the vertices # in this edge. return tuple ( sorted ( sorted_candidates [ 0 ] , key = default_sort_key ) )