COIN-OR::LEMON - Graph Library

Changeset 780:e06d0d16595f in lemon-0.x for src/hugo/bfs.h


Ignore:
Timestamp:
09/01/04 17:08:41 (16 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1073
Message:
  • DFS class (bfs.h and bfs_test.cc) added
  • Bugfixes in Dijkstra and Bfs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/bfs.h

    r774 r780  
    281281    ///\pre \ref run() must be called before using this function.
    282282    ///
    283     bool reached(Node v) { return v==source || (*predecessor)[v]==INVALID; }
     283    bool reached(Node v) { return v==source || (*predecessor)[v]!=INVALID; }
    284284   
    285285  };
Note: See TracChangeset for help on using the changeset viewer.