Changeset 804:4db8d5ccd26b in lemon-1.2 for lemon
- Timestamp:
- 12/13/09 22:19:08 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bellman_ford.h
r788 r804 238 238 _dist = Traits::createDistMap(*_gr); 239 239 } 240 _mask = new MaskMap(*_gr, false); 240 if(!_mask) { 241 _mask = new MaskMap(*_gr); 242 } 241 243 } 242 244 … … 404 406 _process.push_back(it); 405 407 _mask->set(it, true); 408 } 409 } else { 410 for (NodeIt it(*_gr); it != INVALID; ++it) { 411 _mask->set(it, false); 406 412 } 407 413 }
Note: See TracChangeset
for help on using the changeset viewer.