COIN-OR::LEMON - Graph Library

Changeset 309:50f1d2077d50 in lemon-0.x


Ignore:
Timestamp:
04/05/04 19:56:31 (16 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@427
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/list_graph.h

    r304 r309  
    234234   
    235235    ~ListGraph() {
    236       while (first<NodeIt>().valid()) erase(first<NodeIt>());
     236      NodeIt n;
     237      while (this->valid(first(n))) erase(n);
     238      //while (first<NodeIt>().valid()) erase(first<NodeIt>());
    237239    }
    238240
     
    335337
    336338    void erase(Node i) {
    337       while (first<OutEdgeIt>(i).valid()) erase(first<OutEdgeIt>(i));
    338       while (first<InEdgeIt>(i).valid()) erase(first<InEdgeIt>(i));
     339      {
     340        OutEdgeIt e;
     341        while (this->valid(first(e, i))) erase(e);
     342      }
     343      {
     344        InEdgeIt e;
     345        while (this->valid(first(e, i))) erase(e);
     346      }
     347      //while (first<OutEdgeIt>(i).valid()) erase(first<OutEdgeIt>(i));
     348      //while (first<InEdgeIt>(i).valid()) erase(first<InEdgeIt>(i));
    339349      _delete_node(i.node);
    340350    }
Note: See TracChangeset for help on using the changeset viewer.