lemon/karp.h
changeset 815 0a42883c8221
parent 814 11c946fa8d13
child 816 e746fb14e680
equal deleted inserted replaced
1:931aa26edd70 2:a4b748029b57
    17  */
    17  */
    18 
    18 
    19 #ifndef LEMON_KARP_H
    19 #ifndef LEMON_KARP_H
    20 #define LEMON_KARP_H
    20 #define LEMON_KARP_H
    21 
    21 
    22 /// \ingroup shortest_path
    22 /// \ingroup min_mean_cycle
    23 ///
    23 ///
    24 /// \file
    24 /// \file
    25 /// \brief Karp's algorithm for finding a minimum mean cycle.
    25 /// \brief Karp's algorithm for finding a minimum mean cycle.
    26 
    26 
    27 #include <vector>
    27 #include <vector>
    88     typedef lemon::Tolerance<LargeValue> Tolerance;
    88     typedef lemon::Tolerance<LargeValue> Tolerance;
    89     typedef lemon::Path<Digraph> Path;
    89     typedef lemon::Path<Digraph> Path;
    90   };
    90   };
    91 
    91 
    92 
    92 
    93   /// \addtogroup shortest_path
    93   /// \addtogroup min_mean_cycle
    94   /// @{
    94   /// @{
    95 
    95 
    96   /// \brief Implementation of Karp's algorithm for finding a minimum
    96   /// \brief Implementation of Karp's algorithm for finding a minimum
    97   /// mean cycle.
    97   /// mean cycle.
    98   ///
    98   ///
    99   /// This class implements Karp's algorithm for finding a directed
    99   /// This class implements Karp's algorithm for finding a directed
   100   /// cycle of minimum mean length (cost) in a digraph.
   100   /// cycle of minimum mean length (cost) in a digraph.
       
   101   /// It runs in time O(ne) and uses space O(n<sup>2</sup>+e).
   101   ///
   102   ///
   102   /// \tparam GR The type of the digraph the algorithm runs on.
   103   /// \tparam GR The type of the digraph the algorithm runs on.
   103   /// \tparam LEN The type of the length map. The default
   104   /// \tparam LEN The type of the length map. The default
   104   /// map type is \ref concepts::Digraph::ArcMap "GR::ArcMap<int>".
   105   /// map type is \ref concepts::Digraph::ArcMap "GR::ArcMap<int>".
   105 #ifdef DOXYGEN
   106 #ifdef DOXYGEN