COIN-OR::LEMON - Graph Library

Changeset 450:5caac2f7829b in lemon-0.x


Ignore:
Timestamp:
04/28/04 00:29:11 (21 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@598
Message:

trifles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/klao/path.h

    r434 r450  
    586586  typename DynamicPath<Gr>::EdgeIt&
    587587  DynamicPath<Gr>::nth(EdgeIt &e, size_t k) const {
    588     if( k<0 || k>=length() ) {
     588    if( k>=length() ) {
    589589      // FIXME: invalid EdgeIt
    590590      e.it = edges.end();
     
    607607  typename DynamicPath<Gr>::NodeIt&
    608608  DynamicPath<Gr>::nth(NodeIt &n, size_t k) const {
    609     if( k<0 || k>length() ) {
     609    if( k>length() ) {
    610610      // FIXME: invalid NodeIt
    611611      n.idx = length()+1;
     
    650650    int ai = a.idx, bi = b.idx;
    651651    if( bi<ai )
    652       swap(ai,bi);
     652      std::swap(ai,bi);
    653653   
    654654    edges.resize(bi-ai);
Note: See TracChangeset for help on using the changeset viewer.