Changeset 450:5caac2f7829b in lemon-0.x
- Timestamp:
- 04/28/04 00:29:11 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@598
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/klao/path.h
r434 r450 586 586 typename DynamicPath<Gr>::EdgeIt& 587 587 DynamicPath<Gr>::nth(EdgeIt &e, size_t k) const { 588 if( k <0 || k>=length() ) {588 if( k>=length() ) { 589 589 // FIXME: invalid EdgeIt 590 590 e.it = edges.end(); … … 607 607 typename DynamicPath<Gr>::NodeIt& 608 608 DynamicPath<Gr>::nth(NodeIt &n, size_t k) const { 609 if( k <0 || k>length() ) {609 if( k>length() ) { 610 610 // FIXME: invalid NodeIt 611 611 n.idx = length()+1; … … 650 650 int ai = a.idx, bi = b.idx; 651 651 if( bi<ai ) 652 s wap(ai,bi);652 std::swap(ai,bi); 653 653 654 654 edges.resize(bi-ai);
Note: See TracChangeset
for help on using the changeset viewer.