Ticket #11365: trac-11365_hasse-diagram-typos.patch

File trac-11365_hasse-diagram-typos.patch, 1.9 KB (added by mvngu, 11 years ago)
  • sage/combinat/posets/hasse_diagram.py

    # HG changeset patch
    # User Minh Van Nguyen <nguyenminh2@gmail.com>
    # Date 1305958530 25200
    # Node ID e1e8abfa8c2eba6828f7287ca6f05f77c228d8b0
    # Parent  5a11e9c39e99e28a222411f3f868623049134ac4
    #11365: fix bad formatting in hasse_diagram
    
    diff --git a/sage/combinat/posets/hasse_diagram.py b/sage/combinat/posets/hasse_diagram.py
    a b  
    174174    def cover_relations_iterator(self):
    175175        r"""
    176176        TESTS::
     177
    177178            sage: from sage.combinat.posets.hasse_diagram import HasseDiagram
    178179            sage: H = HasseDiagram({0:[2,3], 1:[3,4], 2:[5], 3:[5], 4:[5]})
    179180            sage: list(H.cover_relations_iterator())
     
    185186    def cover_relations(self,element=None):
    186187        r"""
    187188        TESTS::
     189
    188190            sage: from sage.combinat.posets.hasse_diagram import HasseDiagram
    189191            sage: H = HasseDiagram({0:[2,3], 1:[3,4], 2:[5], 3:[5], 4:[5]})
    190192            sage: H.cover_relations()
     
    202204            redefined to use the cached matrix (see ``_alternate_is_lequal``).
    203205
    204206        TESTS::
     207
    205208            sage: from sage.combinat.posets.hasse_diagram import HasseDiagram
    206209            sage: H = HasseDiagram({0:[2], 1:[2], 2:[3], 3:[4], 4:[]})
    207210            sage: x,y,z = 0, 1, 4
     
    638641        Returns the list of elements that are covered by ``element``.
    639642
    640643        EXAMPLES::
     644
    641645            sage: from sage.combinat.posets.hasse_diagram import HasseDiagram
    642646            sage: H = HasseDiagram({0:[1,3,2],1:[4],2:[4,5,6],3:[6],4:[7],5:[7],6:[7],7:[]})
    643647            sage: list(H.lower_covers_iterator(0))
     
    11771181        join of ``x`` and ``y`` is the top element of ``self``.
    11781182
    11791183        EXAMPLES::
     1184
    11801185            sage: from sage.combinat.posets.hasse_diagram import HasseDiagram
    11811186            sage: H = HasseDiagram({0:[1,2,3],1:[4],2:[4],3:[4]})
    11821187            sage: H.complements()