Ticket #7157: trac_7157_review.patch

File trac_7157_review.patch, 2.6 KB (added by mhansen, 11 years ago)
  • sage/combinat/posets/posets.py

    # HG changeset patch
    # User Florent Hivert <Florent.Hivert@univ-rouen.fr>
    # Date 1259577847 -3600
    # Node ID 09cd88132d9b059be4f74e41990177457a1fd7a5
    # Parent  3b2367b1e6fb5c4e5496cde9ffc6b2fa70e59dad
    [mq]: trac_7157_review.patch
    
    diff --git a/sage/combinat/posets/posets.py b/sage/combinat/posets/posets.py
    a b  
    10221022            sage: type(Q.upper_covers_iterator(0))
    10231023            <type 'generator'>
    10241024        """
    1025         for x in self._hasse_diagram.successor_iterator(self._element_to_vertex(y)):
     1025        for x in self._hasse_diagram.neighbor_out_iterator(self._element_to_vertex(y)):
    10261026            yield self._vertex_to_element(x)
    10271027
    10281028    def upper_covers(self,y):
     
    10491049            sage: type(Q.lower_covers_iterator(0))
    10501050            <type 'generator'>
    10511051        """
    1052         for x in self._hasse_diagram.predecessor_iterator(self._element_to_vertex(y)):
     1052        for x in self._hasse_diagram.neighbor_in_iterator(self._element_to_vertex(y)):
    10531053            yield self._vertex_to_element(x)
    10541054
    10551055    def lower_covers(self,y):
  • sage/graphs/graph.py

    diff --git a/sage/graphs/graph.py b/sage/graphs/graph.py
    a b  
    1198411984        """
    1198511985        return iter(set(self._backend.iterator_in_nbrs(vertex)))
    1198611986
    11987     predecessor_iterator = deprecated_function_alias(neighbor_in_iterator, 'Sage Version 4.2, Release Date: 2009-10-24')
     11987    predecessor_iterator = deprecated_function_alias(neighbor_in_iterator, 'Sage Version 4.3')
    1198811988
    1198911989    def neighbors_in(self, vertex):
    1199011990        """
     
    1200012000        """
    1200112001        return list(self.neighbor_in_iterator(vertex))
    1200212002
    12003     predecessors = deprecated_function_alias(neighbors_in, 'Sage Version 4.2, Release Date: 2009-10-24')
     12003    predecessors = deprecated_function_alias(neighbors_in, 'Sage Version 4.3')
    1200412004
    1200512005    def neighbor_out_iterator(self, vertex):
    1200612006        """
     
    1201912019        """
    1202012020        return iter(set(self._backend.iterator_out_nbrs(vertex)))
    1202112021
    12022     successor_iterator = deprecated_function_alias(neighbor_out_iterator, 'Sage Version 4.2, Release Date: 2009-10-24')
     12022    successor_iterator = deprecated_function_alias(neighbor_out_iterator, 'Sage Version 4.3')
    1202312023
    1202412024    def neighbors_out(self, vertex):
    1202512025        """
     
    1203512035        """
    1203612036        return list(self.neighbor_out_iterator(vertex))
    1203712037
    12038     successors = deprecated_function_alias(neighbors_out, 'Sage Version 4.2, Release Date: 2009-10-24')
     12038    successors = deprecated_function_alias(neighbors_out, 'Sage Version 4.3')
    1203912039
    1204012040    ### Degree functions
    1204112041