lemon/dijkstra.h
changeset 1981 81c8efe92706
parent 1956 a055123339d5
child 1988 875fe3f689e0
equal deleted inserted replaced
15:f3721f038fac 16:c50dd8c6ae5b
   482     ///Sets the heap and the cross reference used by algorithm.
   482     ///Sets the heap and the cross reference used by algorithm.
   483 
   483 
   484     ///Sets the heap and the cross reference used by algorithm.
   484     ///Sets the heap and the cross reference used by algorithm.
   485     ///If you don't use this function before calling \ref run(),
   485     ///If you don't use this function before calling \ref run(),
   486     ///it will allocate one. The destuctor deallocates this
   486     ///it will allocate one. The destuctor deallocates this
   487     ///automatically allocated map, of course.
   487     ///automatically allocated heap and cross reference, of course.
   488     ///\return <tt> (*this) </tt>
   488     ///\return <tt> (*this) </tt>
   489     Dijkstra &heap(Heap& heap, HeapCrossRef &crossRef)
   489     Dijkstra &heap(Heap& heap, HeapCrossRef &crossRef)
   490     {
   490     {
   491       if(local_heap_cross_ref) {
   491       if(local_heap_cross_ref) {
   492 	delete _heap_cross_ref;
   492 	delete _heap_cross_ref;