COIN-OR::LEMON - Graph Library

Changeset 1357:2126945deb6a in lemon


Ignore:
Timestamp:
05/22/15 17:47:18 (4 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
1358:48a0d237db3c, 1359:3ec484b11733, 1392:7c86f14b3bc5
Phase:
public
Message:

Fix wrong iteration in ListGraph? snapshot, part II. (#598)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/list_graph.h

    r1356 r1357  
    23002300        }
    23012301        virtual void add(const std::vector<Node>& nodes) {
    2302           for (int i = nodes.size() - 1; i >= 0; ++i) {
     2302          for (int i = nodes.size() - 1; i >= 0; --i) {
    23032303            snapshot.addNode(nodes[i]);
    23042304          }
     
    23502350        }
    23512351        virtual void add(const std::vector<Edge>& edges) {
    2352           for (int i = edges.size() - 1; i >= 0; ++i) {
     2352          for (int i = edges.size() - 1; i >= 0; --i) {
    23532353            snapshot.addEdge(edges[i]);
    23542354          }
Note: See TracChangeset for help on using the changeset viewer.