-
-
Notifications
You must be signed in to change notification settings - Fork 672
Closed
Description
Simplicial complexes are lacking a proper hash function. See the example below.
sage: S = SimplicialComplex([[]]); S
Simplicial complex with vertex set () and facets {()}
sage: hash(S)
-3899221226149827755
sage: S.__hash__??
Source:
def __hash__(self):
return hash(self.__repr__())
Apply:
- attachment: trac_12587-simplicial_complex_hash-ts.patch
- attachment: trac_12587-simplicial_complex_hash_review-cs.patch
- attachment: trac_12587-ref-jhp.patch
Depends on #13226
Depends on #13244
Depends on #13590
CC: @sagetrac-sage-combinat
Component: combinatorics
Author: Travis Scrimshaw
Reviewer: Christian Stump, John Palmieri
Merged: sage-5.6.beta1
Issue created by migration from https://trac.sagemath.org/ticket/12587