# HG changeset patch
# User Peter Kovacs <kpeter@inf.elte.hu>
# Date 1228138422 -3600
# Node ID 62f9787c516c468a3676bb7a91731da83aa64543
# Parent  c4aa9f097ef103efaace0da886a07331ba7c8ddf
Remove DijkstraWidestPathOperationTraits (#187)

diff -r c4aa9f097ef1 -r 62f9787c516c lemon/dijkstra.h
--- a/lemon/dijkstra.h	Tue Nov 11 10:12:37 2008 +0000
+++ b/lemon/dijkstra.h	Mon Dec 01 14:33:42 2008 +0100
@@ -54,29 +54,6 @@
     }
   };
 
-  /// \brief Widest path operation traits for the Dijkstra algorithm class.
-  ///
-  /// This operation traits class defines all computational operations and
-  /// constants which are used in the Dijkstra algorithm for widest path
-  /// computation.
-  ///
-  /// \see DijkstraDefaultOperationTraits
-  template <typename Value>
-  struct DijkstraWidestPathOperationTraits {
-    /// \brief Gives back the maximum value of the type.
-    static Value zero() {
-      return std::numeric_limits<Value>::max();
-    }
-    /// \brief Gives back the minimum of the given two elements.
-    static Value plus(const Value& left, const Value& right) {
-      return std::min(left, right);
-    }
-    /// \brief Gives back true only if the first value is less than the second.
-    static bool less(const Value& left, const Value& right) {
-      return left < right;
-    }
-  };
-
   ///Default traits class of Dijkstra class.
 
   ///Default traits class of Dijkstra class.
diff -r c4aa9f097ef1 -r 62f9787c516c test/dijkstra_test.cc
--- a/test/dijkstra_test.cc	Tue Nov 11 10:12:37 2008 +0000
+++ b/test/dijkstra_test.cc	Mon Dec 01 14:33:42 2008 +0100
@@ -89,7 +89,7 @@
       ::SetDistMap<concepts::ReadWriteMap<Node,VType> >
       ::SetProcessedMap<concepts::WriteMap<Node,bool> >
       ::SetStandardProcessedMap
-      ::SetOperationTraits<DijkstraWidestPathOperationTraits<VType> >
+      ::SetOperationTraits<DijkstraDefaultOperationTraits<VType> >
       ::SetHeap<BinHeap<VType, concepts::ReadWriteMap<Node,int> > >
       ::SetStandardHeap<BinHeap<VType, concepts::ReadWriteMap<Node,int> > >
       ::Create dijkstra_test(G,length);