John H Palmieri wrote: > def collapsed_complex (self): > """ > Remove all free faces from self. Could probably say more here. > > EXAMPLES:: > > sage: S = SimplicialComplex(...) # need to fill in the > details here > sage: S.homology(1) == sage: S.collapsed_complex().homology(1) > True > sage: # could use more examples down here > """ > S1 = S > S2 = free_face_removed( S ) > while S1 <> S2: > S1 = S2 > S2 = free_face_removed( S1 ) > return S2 >
Just FYI, according to the python docs (http://docs.python.org/reference/expressions.html#notin), the "<>" is considered obsolescent. They encourage using "!=" instead. It looks like "<>" is not valid in 3.0, according to http://docs.python.org/3.1/reference/expressions.html#notin Jason -- Jason Grout --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
