Ticket #9546: trac_9546-ref-edit.patch

File trac_9546-ref-edit.patch, 755 bytes (added by rlm, 10 years ago)
  • sage/graphs/generic_graph.py

    # HG changeset patch
    # User Robert Miller <rlm@rlmiller.org>
    # Date 1295041706 28800
    # Node ID adb995ab8a0fe74fc430eeec32fef23b1d8590e7
    # Parent  f851279b2865bb34fc77429de19c9263c7f7470c
    #9546 referee edit
    
    diff -r f851279b2865 -r adb995ab8a0f sage/graphs/generic_graph.py
    a b  
    50025002
    50035003        # Whether we should consider the edges labeled
    50045004        if use_edge_labels:
    5005             l_capacity=lambda x: 1 if (x is None or x == {}) else (x//1 if integer else x)
     5005            l_capacity=lambda x: 1 if (x is None or x == {}) else (floor(x) if integer else x)
    50065006        else:
    50075007            l_capacity=lambda x: 1
    50085008