Ticket #4813: trac_4813-2.patch

File trac_4813-2.patch, 2.1 KB (added by mhansen, 4 years ago)
  • sage/tests/arxiv_0812_2725.py

    # HG changeset patch
    # User Mike Hansen <mhansen@gmail.com>
    # Date 1232765718 28800
    # Node ID 8c9eff3598f287e61202bd5e6de3ec82cd948120
    # Parent  543befb306ba3728990e9104ad79a13b3402aa4e
    Fixed minor formatting issues in #4813.
    
    diff -r 543befb306ba -r 8c9eff3598f2 sage/tests/arxiv_0812_2725.py
    a b  
    4040from sage.combinat.set_partition import SetPartitions as SetPartitions 
    4141 
    4242def CompleteMatchings(n): 
    43     """Return a generator for the complete matchings of the set [1..n]. 
     43    """ 
     44    Return a generator for the complete matchings of the set [1..n]. 
    4445     
    4546    INPUT: 
    4647        n -- nonnegative integer 
     
    7273    for m in matchingsset(range(1, n+1)): yield m 
    7374  
    7475def matchingsset(L): 
    75     """Return a generator for complete matchings of the sequence L. 
     76    """ 
     77    Return a generator for complete matchings of the sequence L. 
    7678 
    7779    This is not really meant to be called directly, but rather by 
    7880    CompleteMatchings(). 
     
    163165    return d 
    164166 
    165167def setp_to_edges(p): 
    166     """Transform a set partition into a list of edges. 
     168    """ 
     169    Transform a set partition into a list of edges. 
    167170 
    168171    INPUT: 
    169172        p -- a Sage set partition. 
     
    186189    return ans 
    187190     
    188191def dcrossvec_setp(n): 
    189     """Return a list with the distribution of k-dcrossings on set partitions of [1..n]. 
     192    """ 
     193    Return a list with the distribution of k-dcrossings on set partitions of [1..n]. 
    190194 
    191195    INPUT: 
    192196        n -- a nonnegative integer. 
     
    222226    return vec 
    223227 
    224228def dcrossvec_cm(n): 
    225     """Return a list with the distribution of k-dcrossings on complete matchings on n vertices. 
     229    """ 
     230    Return a list with the distribution of k-dcrossings on complete matchings on n vertices. 
    226231 
    227232    INPUT: 
    228233        n -- a nonnegative integer. 
     
    269274    return vec 
    270275 
    271276def tablecolumn(n, k): 
    272     """Return column n of Table 1 or 2 from the paper arxiv:0812.2725. 
     277    """ 
     278    Return column n of Table 1 or 2 from the paper arxiv:0812.2725. 
    273279 
    274280    INPUT: 
    275281        n -- positive integer.