Ticket #12587: trac_12587-simplicial_complex_hash_review-cs.patch

File trac_12587-simplicial_complex_hash_review-cs.patch, 1.8 KB (added by stumpc5, 9 years ago)
  • sage/homology/simplicial_complex.py

    # HG changeset patch
    # User Christian Stump <christian.stump at gmail.com>
    # Date 1353507177 -3600
    # Node ID e894dae8eb099fb18e93e3b65f2419ba5788fa16
    # Parent  13daf946c02604f55f212c31dee34cf9029da804
    trac 12587: review
    
    diff --git a/sage/homology/simplicial_complex.py b/sage/homology/simplicial_complex.py
    a b class Simplex(SageObject): 
    453453
    454454    def face(self, n):
    455455        """
    456         The nth face of this simplex.
     456        The `n`-th face of this simplex.
    457457
    458458        :param n: an integer between 0 and the dimension of this simplex
    459459        :type n: integer
    460         :return: the simplex obtained by removing the ``n``-th vertex from this
     460        :return: the simplex obtained by removing the `n`-th vertex from this
    461461            simplex
    462462
    463463        EXAMPLES::
    class Simplex(SageObject): 
    564564            vertex names like (0,1) are not suitable for that, while
    565565            vertex names like "L0R1" are.
    566566
    567         :type rename-vertices: boolean; optional, default ``True``
     567        :type rename_vertices: boolean; optional, default ``True``
    568568
    569569        Algorithm: see Hatcher, p. 277-278 [Hat]_ (who in turn refers to
    570570        Eilenberg-Steenrod, p. 68): given ``S = Simplex(m)`` and
    class SimplicialComplex(GenericCellCompl 
    14651465                    new_facets.append(f.join(w, rename_vertices=False))
    14661466                return SimplicialComplex(new_facets)
    14671467            else:
    1468                 return self.join(SimplicialComplex(["0", "1"], [["0"], ["1"]], is_mutable=is_mutable),
     1468                return self.join(SimplicialComplex([["0"], ["1"]], is_mutable=is_mutable),
    14691469                                 rename_vertices = True)
    14701470        return self.suspension(is_mutable).suspension(int(n-1), is_mutable)
    14711471