Ticket #13058: trac_13058fromstring.reviewer.patch
File trac_13058fromstring.reviewer.patch, 2.4 KB (added by , 7 years ago) 


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 1511 1511 1512 1512 return H 1513 1513 1514 def HallJankoGraph(self, from_string =True):1514 def HallJankoGraph(self, from_string=True): 1515 1515 r""" 1516 1516 Returns the HallJanko graph. 1517 1517 … … 1565 1565 1566 1566 TESTS:: 1567 1567 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 1570 1570 True 1571 1571 """ 1572 1572 … … 1617 1617 g = graph.Graph(string, pos={}, loops=False, multiedges=False) 1618 1618 else: 1619 1619 1620 # The following construction is due to version 3 of the ATLAS of Finite1621 # Group Representations, specifically the page at1620 # The following construction is due to version 3 of the ATLAS of 1621 # Finite Group Representations, specifically the page at 1622 1622 # http://brauer.maths.qmul.ac.uk/Atlas/v3/permrep/J2G1p100B0 . 1623 1623 1624 1624 from sage.interfaces.gap import gap … … 1631 1631 "(77,98)(79,80);") 1632 1632 1633 1633 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 "(1 5,98,25)(16,73,32)(17,39,33)(20,97,58)(21,96,67)"1636 "(2 6,93,99)(28,57,35)(29,71,55)(30,69,45)(34,86,82)"1637 "(3 8,59,94)(40,43,91)(42,68,44)(46,85,89)(48,76,90)"1638 "(4 9,92,77)(50,66,88)(54,95,56)(63,74,72)(70,81,75)"1639 "(7 9,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);") 1640 1640 1641 1641 gap.eval("G := Group([g1,g2]);") 1642 1642 edges = gap('Orbit(G,[1,5],OnSets)')