Ticket #10885: trac10855-efficiency_improvment_bug_correction.patch

File trac10855-efficiency_improvment_bug_correction.patch, 684 bytes (added by ylchapuy, 10 years ago)
  • sage/graphs/base/c_graph.pyx

    # HG changeset patch
    # User YLC <y@l.c>
    # Date 1299795050 -3600
    # Node ID fee359b45c3079e6b6c6298a8dc1d5a3d5f651a5
    # Parent  ca0f05d1accdccade47df21d9672031122aeb1b1
    #10885 correct small bug in reviewers patch
    
    diff -r ca0f05d1accd -r fee359b45c30 sage/graphs/base/c_graph.pyx
    a b  
    26512651        if paths: tmp_prec = {}
    26522652        if distances: tmp_dist = {}
    26532653        v = vertex_label(v_int, ggbvi, ggbvl, g)
     2654        dv = dist[v_int]
    26542655        for u_int in gverts:
    26552656            u = vertex_label(u_int, ggbvi, ggbvl, g)
    26562657            if paths: