Changeset 987:87f7c54892df in lemon-0.x for src/work/alpar/dijkstra.h
- Timestamp:
- 11/13/04 18:07:10 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1377
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/alpar/dijkstra.h
r986 r987 47 47 typedef LM LengthMap; 48 48 //The type of the length of the edges. 49 typedef typename LM::Value Type ValueType;49 typedef typename LM::Value Value; 50 50 ///The heap type used by Dijkstra algorithm. 51 51 … … 55 55 ///\sa Dijkstra 56 56 typedef BinHeap<typename Graph::Node, 57 typename LM::Value Type,57 typename LM::Value, 58 58 typename GR::template NodeMap<int>, 59 std::less<Value Type> > Heap;59 std::less<Value> > Heap; 60 60 61 61 ///\brief The type of the map that stores the last … … 91 91 ///It must meet the \ref concept::WriteMap "WriteMap" concept. 92 92 /// 93 typedef typename Graph::template NodeMap<typename LM::Value Type> DistMap;93 typedef typename Graph::template NodeMap<typename LM::Value> DistMap; 94 94 ///Instantiates a DistMap. 95 95 … … 110 110 /// 111 111 ///The type of the length is determined by the 112 ///\ref concept::ReadMap::Value Type "ValueType" of the length map.112 ///\ref concept::ReadMap::Value "Value" of the length map. 113 113 /// 114 114 ///It is also possible to change the underlying priority heap. … … 159 159 160 160 ///The type of the length of the edges. 161 typedef typename TR::LengthMap::Value Type ValueType;161 typedef typename TR::LengthMap::Value Value; 162 162 ///The type of the map that stores the edge lengths. 163 163 typedef typename TR::LengthMap LengthMap; … … 388 388 389 389 Node v=heap.top(); 390 Value Typeoldvalue=heap[v];390 Value oldvalue=heap[v]; 391 391 heap.pop(); 392 392 distance->set(v, oldvalue); … … 421 421 ///\warning If node \c v in unreachable from the root the return value 422 422 ///of this funcion is undefined. 423 Value Typedist(Node v) const { return (*distance)[v]; }423 Value dist(Node v) const { return (*distance)[v]; } 424 424 425 425 ///Returns the 'previous edge' of the shortest path tree. … … 498 498 typedef typename TR::LengthMap LengthMap; 499 499 ///The type of the length of the edges. 500 typedef typename LengthMap::Value Type ValueType;500 typedef typename LengthMap::Value Value; 501 501 ///\brief The type of the map that stores the last 502 502 ///edges of the shortest paths.
Note: See TracChangeset
for help on using the changeset viewer.