Ticket #13058: trac_13058-fromstring.reviewer.patch

File trac_13058-fromstring.reviewer.patch, 2.4 KB (added by kini, 7 years ago)

apply to $SAGE_ROOT/devel/sage

  • sage/graphs/graph_generators.py

    # HG changeset patch
    # User Keshav Kini <keshav.kini@gmail.com>
    # Date 1338394170 25200
    # Node ID abeb132b3e5e29e221d14602b5cd39fe083eb9ee
    # Parent  1a1f98e921da153165f4774c4e66aa97a0a89a78
    Formatting, mark doctests as long
    
    diff --git a/sage/graphs/graph_generators.py b/sage/graphs/graph_generators.py
    a b  
    15111511
    15121512        return H
    15131513
    1514     def HallJankoGraph(self, from_string = True):
     1514    def HallJankoGraph(self, from_string=True):
    15151515        r"""
    15161516        Returns the Hall-Janko graph.
    15171517
     
    15651565
    15661566        TESTS::
    15671567
    1568             sage: gg = graphs.HallJankoGraph(from_string = False)
    1569             sage: g == gg
     1568            sage: gg = graphs.HallJankoGraph(from_string=False) # long time
     1569            sage: g == gg # long time
    15701570            True
    15711571        """
    15721572
     
    16171617            g = graph.Graph(string, pos={}, loops=False, multiedges=False)
    16181618        else:
    16191619
    1620             # The following construction is due to version 3 of the ATLAS of Finite
    1621             # Group Representations, specifically the page at
     1620            # The following construction is due to version 3 of the ATLAS of
     1621            # Finite Group Representations, specifically the page at
    16221622            # http://brauer.maths.qmul.ac.uk/Atlas/v3/permrep/J2G1-p100B0 .
    16231623
    16241624            from sage.interfaces.gap import gap
     
    16311631                     "(77,98)(79,80);")
    16321632
    16331633            gap.eval("g2 := (1,80,22)(2,9,11)(3,53,87)(4,23,78)(5,51,18)"
    1634                      "(6,37,24)(8,27,60)(10,62,47)(12,65,31)(13,64,19)(14,61,52)"
    1635                      "(15,98,25)(16,73,32)(17,39,33)(20,97,58)(21,96,67)"
    1636                      "(26,93,99)(28,57,35)(29,71,55)(30,69,45)(34,86,82)"
    1637                      "(38,59,94)(40,43,91)(42,68,44)(46,85,89)(48,76,90)"
    1638                      "(49,92,77)(50,66,88)(54,95,56)(63,74,72)(70,81,75)"
    1639                      "(79,100,83);")
     1634                     "(6,37,24)(8,27,60)(10,62,47)(12,65,31)(13,64,19)"
     1635                     "(14,61,52)(15,98,25)(16,73,32)(17,39,33)(20,97,58)"
     1636                     "(21,96,67)(26,93,99)(28,57,35)(29,71,55)(30,69,45)"
     1637                     "(34,86,82)(38,59,94)(40,43,91)(42,68,44)(46,85,89)"
     1638                     "(48,76,90)(49,92,77)(50,66,88)(54,95,56)(63,74,72)"
     1639                     "(70,81,75)(79,100,83);")
    16401640
    16411641            gap.eval("G := Group([g1,g2]);")
    16421642            edges = gap('Orbit(G,[1,5],OnSets)')