Changes between Initial Version and Version 1 of Ticket #26931


Ignore:
Timestamp:
12/21/18 12:52:08 (13 months ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26931 – Description

    initial v1  
     1#25932 introduced code of the form
     2{{{
     3try:
     4    vertices = tuple(sorted(vertex_set))
     5except TypeError:
     6    vertices = tuple(sorted(vertex_set, key=str))
     7}}}
     8The problem here is that sorting is not predictable: adding a vertex or considering a subset of vertices could suddenly change the sorting.
     9
     10Instead, the sorting key should be explicitly given and the same key should always be used for the same simplicial complex.