Changeset 1229:aa65e46aebc3 in lemon-0.x for src
- Timestamp:
- 03/21/05 08:47:00 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1656
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lemon/dijkstra.h
r1220 r1229 473 473 /// 474 474 ///\todo _heap_map's type could also be in the traits class. 475 ///\todo The heaps should be able to make themselves empty directly. 475 476 void init() 476 477 { 477 478 create_maps(); 478 479 while(!_heap.empty()) _heap.pop(); 479 480 for ( NodeIt u(*G) ; u!=INVALID ; ++u ) { 480 481 _pred->set(u,INVALID); … … 585 586 { 586 587 while ( !_heap.empty() && _heap.top()!=dest ) processNextNode(); 587 if ( _heap.top()==dest ) finalizeNodeData(_heap.top());588 if ( !_heap.empty() ) finalizeNodeData(_heap.top(),_heap.prio()); 588 589 } 589 590 … … 601 602 { 602 603 while ( !_heap.empty() && !nm[_heap.top()] ) processNextNode(); 603 if ( !_heap.empty() ) finalizeNodeData(_heap.top() );604 if ( !_heap.empty() ) finalizeNodeData(_heap.top(),_heap.prio()); 604 605 } 605 606 … … 855 856 }; 856 857 857 /// A class to make easier the usage of Dijkstra algorithm858 /// A class to make the usage of Dijkstra algorithm easier 858 859 859 860 /// This class is created to make it easier to use Dijkstra algorithm.
Note: See TracChangeset
for help on using the changeset viewer.