COIN-OR::LEMON - Graph Library

Changeset 1457:be025fc1b13d in lemon-0.x for lemon/smart_graph.h


Ignore:
Timestamp:
06/09/05 11:47:51 (15 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1937
Message:

Serious bugfix in ListGraph::SnapShot? and SmartGraph::SnapShot?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/smart_graph.h

    r1435 r1457  
    281281    void restoreSnapShot(const SnapShot &s)
    282282    {
    283       while(s.edge_num>edges.size()) {
     283      while(s.edge_num<edges.size()) {
    284284        Parent::getNotifier(Edge()).erase(Edge(edges.size()-1));
    285285        nodes[edges.back().target].first_in=edges.back().next_in;
     
    288288      }
    289289      //nodes.resize(s.nodes_num);
    290       while(s.node_num>nodes.size()) {
     290      while(s.node_num<nodes.size()) {
    291291        Parent::getNotifier(Node()).erase(Node(nodes.size()-1));
    292292        nodes.pop_back();
Note: See TracChangeset for help on using the changeset viewer.