You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running add_face on a simplicial complex doesn't clear various data related to homology calculations:
sage: T = SimplicialComplex([range(1,5)]).n_skeleton(1)
sage: T.homology()
{0: 0, 1: Z x Z x Z}
sage: T.add_face([1,2,3])
sage: T.homology() # should be free of rank 2
{0: 0, 1: Z x Z x Z, 2: 0}
sage: SimplicialComplex(T.facets()).homology()
{0: 0, 1: Z x Z, 2: 0}
Could you make self.__contractible = {} to self.__contractible = None to be consistent with the initial state (I also think this will result in a speedup for larger complexes since I think it will know to compute a large contractible subcomplex)? Other than that, I think this looks good. Thanks.
Running
add_face
on a simplicial complex doesn't clear various data related to homology calculations:See also http://ask.sagemath.org/question/2391/homology-of-simplicial-complexes.
CC: @tscrim
Component: algebraic topology
Author: John Palmieri
Reviewer: Travis Scrimshaw
Merged: sage-5.9.beta2
Issue created by migration from https://trac.sagemath.org/ticket/14354
The text was updated successfully, but these errors were encountered: