Changeset 1999:2ff283124dfc in lemon-0.x for lemon/edge_set.h
- Timestamp:
- 03/06/06 11:28:37 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2609
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/edge_set.h
r1990 r1999 572 572 typedef typename Parent::NodesImplBase NodesImplBase; 573 573 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 } 575 579 throw UnsupportedOperation(); 576 580 } … … 663 667 typedef typename Parent::NodesImplBase NodesImplBase; 664 668 665 void eraseNode(const Node&) { 669 void eraseNode(const Node& node) { 670 if (Parent::IncEdgeIt(*this, node) == INVALID) { 671 return; 672 } 666 673 throw UnsupportedOperation(); 667 674 }
Note: See TracChangeset
for help on using the changeset viewer.