COIN-OR::LEMON - Graph Library

Ticket #171: 5a3d689ea770.patch

File 5a3d689ea770.patch, 792 bytes (added by Peter Kovacs, 16 years ago)
  • lemon/smart_graph.h

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1226055653 -3600
    # Node ID 5a3d689ea770255b4ba128fb91892266d3bb17a2
    # Parent  00c8843d491d53848439decbb302abdb8525f173
    Bug fix in SmartGraph::restoreSnapshot() (#171)
    
    diff --git a/lemon/smart_graph.h b/lemon/smart_graph.h
    a b  
    730730        dir.push_back(arcFromId(n));
    731731        dir.push_back(arcFromId(n-1));
    732732        Parent::notifier(Arc()).erase(dir);
    733         nodes[arcs[n].target].first_out=arcs[n].next_out;
    734         nodes[arcs[n-1].target].first_out=arcs[n-1].next_out;
     733        nodes[arcs[n-1].target].first_out=arcs[n].next_out;
     734        nodes[arcs[n].target].first_out=arcs[n-1].next_out;
    735735        arcs.pop_back();
    736736        arcs.pop_back();
    737737      }