Ticket #14283: 14283_extra.patch

File 14283_extra.patch, 720 bytes (added by dimpase, 8 years ago)

fix for Cameron graph

  • sage/graphs/generators/smallgraphs.py

    # HG changeset patch
    # User Dmitrii Pasechnik <dimpase@gmail.com>
    # Date 1367040448 -28800
    # Node ID 0d01edc432cd45c5591f12a91734577405e99a98
    # Parent  22885f3a6663fc6cc3c9dd2f1856e5b446c7402c
    canonizing sets
    
    diff --git a/sage/graphs/generators/smallgraphs.py b/sage/graphs/generators/smallgraphs.py
    a b  
    11291129    g = Graph(name="Cameron Graph")
    11301130    sets = MathieuGroup(22).orbit((1,2,3,7,10,20), action = "OnSets")
    11311131    for s in sets:
    1132         for a,b,c,d in combinations(s,4):
     1132        for a,b,c,d in combinations(set(s),4):
    11331133            g.add_edges([((a,b),(c,d)),((a,c),(b,d)), ((a,d),(b,c))])
    11341134
    11351135    g.relabel()