COIN-OR::LEMON - Graph Library

Changeset 67:5f86199dcf3e in lemon-0.x for src/work/list_graph.hh


Ignore:
Timestamp:
02/06/04 12:45:47 (18 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@82
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/list_graph.hh

    r64 r67  
    213213   
    214214    ~ListGraph() {
    215       while (first<EachNodeIt>().valid()) deleteNode(first<EachNodeIt>());
     215      while (first<EachNodeIt>().valid()) erase(first<EachNodeIt>());
    216216    }
    217217
     
    294294    }
    295295
    296     void deleteNode(NodeIt i) {
    297       while (first<OutEdgeIt>(i).valid()) deleteEdge(first<OutEdgeIt>(i));
    298       while (first<InEdgeIt>(i).valid()) deleteEdge(first<InEdgeIt>(i));
     296    void erase(NodeIt i) {
     297      while (first<OutEdgeIt>(i).valid()) erase(first<OutEdgeIt>(i));
     298      while (first<InEdgeIt>(i).valid()) erase(first<InEdgeIt>(i));
    299299      _delete_node(i.node);
    300300    }
    301301 
    302     void deleteEdge(EdgeIt e) { _delete_edge(e.edge); }
     302    void erase(EdgeIt e) { _delete_edge(e.edge); }
    303303
    304304    void setTail(EdgeIt e, NodeIt tail) {
Note: See TracChangeset for help on using the changeset viewer.