Ticket #6823: trac_6823_reviewer.patch

File trac_6823_reviewer.patch, 767 bytes (added by rbeezer, 11 years ago)

Reviewer patch to set odd graph name

  • sage/graphs/graph_generators.py

    # HG changeset patch
    # User Rob Beezer <beezer@ups.edu>
    # Date 1254288525 25200
    # Node ID 1d737375a3b758ea00a347879a5d3daa412283f0
    # Parent  9afce3e2dfd411195e5881c43c66bfa67a45ec6f
    Trac 6823, reviewer patch for odd graph name
    
    diff -r 9afce3e2dfd4 -r 1d737375a3b7 sage/graphs/graph_generators.py
    a b  
    18941894
    18951895        if not n>1:
    18961896            raise ValueError, "Parameter n should be an integer strictly greater than 1"
    1897         return self.KneserGraph(2*n-1,n-1)
     1897        g = self.KneserGraph(2*n-1,n-1)
     1898        g.name("Odd Graph with parameter %s" % n)
     1899        return g
    18981900
    18991901   
    19001902    def MoebiusKantorGraph(self):