COIN-OR::LEMON - Graph Library

Changeset 1999:2ff283124dfc in lemon-0.x for lemon/edge_set.h


Ignore:
Timestamp:
03/06/06 11:28:37 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2609
Message:

Clarifing alteration observing system
It is directly connected now to a container

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/edge_set.h

    r1990 r1999  
    572572    typedef typename Parent::NodesImplBase NodesImplBase;
    573573
    574     void eraseNode(const Node&) {
     574    void eraseNode(const Node& node) {
     575      if (Parent::InEdgeIt(*this, node) == INVALID &&
     576          Parent::OutEdgeIt(*this, node) == INVALID) {
     577        return;
     578      }
    575579      throw UnsupportedOperation();
    576580    }
     
    663667    typedef typename Parent::NodesImplBase NodesImplBase;
    664668
    665     void eraseNode(const Node&) {
     669    void eraseNode(const Node& node) {
     670      if (Parent::IncEdgeIt(*this, node) == INVALID) {
     671        return;
     672      }
    666673      throw UnsupportedOperation();
    667674    }
Note: See TracChangeset for help on using the changeset viewer.