Ticket #10329: trac_10329-positions.patch

File trac_10329-positions.patch, 1.0 KB (added by ncohen, 11 years ago)
  • sage/graphs/graph_generators.py

    # HG changeset patch
    # User Nathann Cohen <nathann.cohen@gmail.com>
    # Date 1290777913 -3600
    # Node ID 622828d5ffdaad3af26c789b9dcb690aaa252ec0
    # Parent  c8e2da57206307549bd8b2eb4b2978ab376e3767
    trac 10329 - Positions for Goldner-Harary graph
    
    diff -r c8e2da572063 -r 622828d5ffda sage/graphs/graph_generators.py
    a b  
    27012701            7: [8,10],
    27022702            8: [10],
    27032703            9: [10]}
    2704         return graph.Graph(edge_dict, name="Goldner-Harary graph")
     2704
     2705        pos = {
     2706            0: (-2, 0),
     2707            1: (0, 1.5),
     2708            2: (2, 0),
     2709            3: (0, -1.5),
     2710            4: (-1.5, 0),
     2711            5: (-0.5, 0.5),
     2712            6: (0.5, 0.5),
     2713            7: (1.5, 0),
     2714            8: (0.5, -0.5),
     2715            9: (-0.5, -0.5),
     2716            10: (0, 0)}
     2717
     2718        return graph.Graph(edge_dict, pos = pos, name="Goldner-Harary graph")
    27052719
    27062720    def GrotzschGraph(self):
    27072721        r"""