Ticket #9581: trac_9581-fix.patch

File trac_9581-fix.patch, 715 bytes (added by ncohen, 10 years ago)
  • sage/graphs/generic_graph.py

    # HG changeset patch
    # User Nathann Cohen <nathann.cohen@gmail.com>
    # Date 1279879955 -28800
    # Node ID bc46d379a572582893d0009d31ecedd094b70ab1
    # Parent  7231357cd1f1e46d9252e2e9d188ea19a10654a0
    trac 9581 -- small fix on the real patch
    
    diff -r 7231357cd1f1 -r bc46d379a572 sage/graphs/generic_graph.py
    a b  
    69836983        if vertices in self:
    69846984            vertices = [vertices]
    69856985        v = list(self.edge_iterator(vertices=vertices,labels=labels))
    6986         v.sort()
     6986
     6987        if sort:
     6988            v.sort()
     6989
    69876990        return v
    69886991
    69896992    def edge_label(self, u, v=None):