Ticket #13058: trac_13058-bugfix_and_speedup.patch

File trac_13058-bugfix_and_speedup.patch, 1.1 KB (added by ncohen, 7 years ago)
  • sage/graphs/graph_generators.py

    # HG changeset patch
    # User Nathann Cohen <nathann.cohen@gmail.com>
    # Date 1341065087 -7200
    # Node ID b38747841416abc8d3cc35f19cbf7627b08298ad
    # Parent  5a57512a495b939f36a01e8f32f7ae96b9422355
    Hall-Janko graph -- bugfix and speedup
    
    diff --git a/sage/graphs/graph_generators.py b/sage/graphs/graph_generators.py
    a b  
    16121612                  "HB`CQCp[WFQGgIQgkJQ{rLbc{Nc@APsdLRt@PSt\\WUtt_Wn")
    16131613
    16141614        if from_string:
    1615             g = graph.Graph(string)
     1615            g = graph.Graph(string, loops = False, multiedges = False)
    16161616        else:
    16171617
    16181618            # The following construction is due to version 3 of the ATLAS of
     
    16371637                     "(70,81,75)(79,100,83);")
    16381638
    16391639            gap.eval("G := Group([g1,g2]);")
    1640             edges = gap('Orbit(G,[1,5],OnSets)')
    1641 
    1642             g = graph([(int(u), int(v)) for u, v in edges])
     1640            edges = gap('Orbit(G,[1,5],OnSets)').sage()
     1641            g = graph.Graph(edges)
    16431642            g.relabel()
    16441643
    16451644        _circle_embedding(g, range(100))