Merge fix #187 1.0
authorAlpar Juttner <alpar@cs.elte.hu>
Mon, 01 Dec 2008 13:48:26 +0000
branch1.0
changeset 420cb5f50e6c78b
parent 393 7d85a624093e
parent 412 62f9787c516c
child 436 e562b69acbc6
Merge fix #187
     1.1 --- a/lemon/dijkstra.h	Tue Nov 11 12:13:07 2008 +0000
     1.2 +++ b/lemon/dijkstra.h	Mon Dec 01 13:48:26 2008 +0000
     1.3 @@ -54,29 +54,6 @@
     1.4      }
     1.5    };
     1.6  
     1.7 -  /// \brief Widest path operation traits for the Dijkstra algorithm class.
     1.8 -  ///
     1.9 -  /// This operation traits class defines all computational operations and
    1.10 -  /// constants which are used in the Dijkstra algorithm for widest path
    1.11 -  /// computation.
    1.12 -  ///
    1.13 -  /// \see DijkstraDefaultOperationTraits
    1.14 -  template <typename Value>
    1.15 -  struct DijkstraWidestPathOperationTraits {
    1.16 -    /// \brief Gives back the maximum value of the type.
    1.17 -    static Value zero() {
    1.18 -      return std::numeric_limits<Value>::max();
    1.19 -    }
    1.20 -    /// \brief Gives back the minimum of the given two elements.
    1.21 -    static Value plus(const Value& left, const Value& right) {
    1.22 -      return std::min(left, right);
    1.23 -    }
    1.24 -    /// \brief Gives back true only if the first value is less than the second.
    1.25 -    static bool less(const Value& left, const Value& right) {
    1.26 -      return left < right;
    1.27 -    }
    1.28 -  };
    1.29 -
    1.30    ///Default traits class of Dijkstra class.
    1.31  
    1.32    ///Default traits class of Dijkstra class.
     2.1 --- a/test/dijkstra_test.cc	Tue Nov 11 12:13:07 2008 +0000
     2.2 +++ b/test/dijkstra_test.cc	Mon Dec 01 13:48:26 2008 +0000
     2.3 @@ -89,7 +89,7 @@
     2.4        ::SetDistMap<concepts::ReadWriteMap<Node,VType> >
     2.5        ::SetProcessedMap<concepts::WriteMap<Node,bool> >
     2.6        ::SetStandardProcessedMap
     2.7 -      ::SetOperationTraits<DijkstraWidestPathOperationTraits<VType> >
     2.8 +      ::SetOperationTraits<DijkstraDefaultOperationTraits<VType> >
     2.9        ::SetHeap<BinHeap<VType, concepts::ReadWriteMap<Node,int> > >
    2.10        ::SetStandardHeap<BinHeap<VType, concepts::ReadWriteMap<Node,int> > >
    2.11        ::Create dijkstra_test(G,length);