Ticket #12587: trac_12587-ref-jhp.patch

File trac_12587-ref-jhp.patch, 4.3 KB (added by jhpalmieri, 9 years ago)
  • sage/homology/examples.py

    # HG changeset patch
    # User J. H. Palmieri <palmieri@math.washington.edu>
    # Date 1353538075 28800
    # Node ID b8c2ad3165525ac9251ad0f8190cc6a21ee162ca
    # Parent  e894dae8eb099fb18e93e3b65f2419ba5788fa16
    Referee patch: document deprecation of vertex_set, etc., in ref manual.
    
    diff --git a/sage/homology/examples.py b/sage/homology/examples.py
    a b class SimplicialComplexExamples(): 
    155155    Some examples of simplicial complexes.
    156156
    157157    Here are the available examples; you can also type
    158     ``simplicial_complexes.``  and hit tab to get a list::
     158    ``simplicial_complexes.``  and hit tab to get a list:
    159159
    160160    - :meth:`ChessboardComplex`
    161161    - :meth:`ComplexProjectivePlane`
  • sage/homology/simplicial_complex.py

    diff --git a/sage/homology/simplicial_complex.py b/sage/homology/simplicial_complex.py
    a b class Simplex(SageObject): 
    593593            [('L0R0', 'L0R1', 'L1R1'), ('L0R0', 'L1R0', 'L1R1')]
    594594            sage: Simplex(1).product(Simplex(1), rename_vertices=False)
    595595            [((0, 0), (0, 1), (1, 1)), ((0, 0), (1, 0), (1, 1))]
    596 
    597         REFERENCES:
    598 
    599         .. [Hat] A. Hatcher, "Algebraic Topology", Cambridge University Press
    600            (2002).
    601596        """
    602597        if not rename_vertices:
    603598            return [Simplex(x) for x in lattice_paths(self.tuple(), other.tuple())]
    class SimplicialComplex(GenericCellCompl 
    713708    -- use this if you plan to use the Stanley-Reisner ring for the
    714709    simplicial complex.
    715710
     711    .. WARNING::
     712
     713        Earlier versions of Sage supported a ``vertex_set`` argument
     714        to specify the vertices. This is now deprecated -- see
     715        :trac:`12587` -- the set of vertices is determined from the
     716        maximal faces.
     717
    716718    EXAMPLES::
    717719
    718720        sage: SimplicialComplex([[1,2], [1,4]])
    class SimplicialComplex(GenericCellCompl 
    725727        sage: S
    726728        Simplicial complex with vertex set ('a', 'b', 'c') and facets {('b', 'c'), ('a', 'c'), ('a', 'b')}
    727729
    728     You can also omit the ``vertex_set`` argument -- if the first
    729     argument is a list of lists (or anything similar -- something
    730     which looks like it should be ``maximal_faces``), then it is used
    731     for ``maximal_faces``, and the set of vertices is deduced from the
    732     vertices used therein::
    733 
    734         sage: SimplicialComplex([[0,2], [0,3], [0,6]])
    735         Simplicial complex with vertex set (0, 2, 3, 6) and facets {(0, 6), (0, 2), (0, 3)}
    736 
    737     Finally, if ``vertex_set`` is the only argument and it is a
     730    Finally, if there is only one argument and it is a
    738731    simplicial complex, return that complex.  If it is an object with
    739732    a built-in conversion to simplicial complexes (via a
    740733    ``_simplicial_`` method), then the resulting simplicial complex is
    class SimplicialComplex(GenericCellCompl 
    781774            sage: S3 = SimplicialComplex(maximal_faces=[[1,4], [2,4]])
    782775            sage: S == S3
    783776            True
     777
     778            sage: Y = SimplicialComplex([1,2,3,4], [[1,2], [2,3], [3,4]])
     779            doctest:1: DeprecationWarning: vertex_set is deprecated.
     780            See http://trac.sagemath.org/12587 for details.
     781            sage: Y = SimplicialComplex([1,2,3,4], [[1,2], [2,3], [3,4]], vertex_check=False)
     782            doctest:1: DeprecationWarning: vertex_check is deprecated.
     783            See http://trac.sagemath.org/12587 for details.
    784784        """
    785785        from sage.misc.misc import union
    786786        # process kwds
    class SimplicialComplex(GenericCellCompl 
    21262126        The set of vertices belonging to some face. Returns the list of
    21272127        vertices.
    21282128
     2129        .. WARNING::
     2130
     2131            This method is deprecated. See :trac:`12587`.
     2132
    21292133        EXAMPLES::
    21302134
    21312135            sage: S = SimplicialComplex([[0,1,2,3],[6,7]])
  • sage/interfaces/chomp.py

    diff --git a/sage/interfaces/chomp.py b/sage/interfaces/chomp.py
    a b class CHomP: 
    209209            elif simplicial:
    210210                m = re.search(r'\(([^,]*),', data)
    211211                v = int(m.group(1))
    212                 subcomplex = SimplicialComplex([v], [[v]])
     212                subcomplex = SimplicialComplex([[v]])
    213213        else:
    214214            # replace subcomplex with [0,1] x subcomplex.
    215215            if cubical: