Changes in lemon/karp.h [819:f964a00b9068:914:aa8c9008b3de] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/karp.h
r819 r914 105 105 /// \tparam LEN The type of the length map. The default 106 106 /// map type is \ref concepts::Digraph::ArcMap "GR::ArcMap<int>". 107 /// \tparam TR The traits class that defines various types used by the 108 /// algorithm. By default, it is \ref KarpDefaultTraits 109 /// "KarpDefaultTraits<GR, LEN>". 110 /// In most cases, this parameter should not be set directly, 111 /// consider to use the named template parameters instead. 107 112 #ifdef DOXYGEN 108 113 template <typename GR, typename LEN, typename TR> … … 126 131 /// 127 132 /// The large value type used for internal computations. 128 /// Using the \ref KarpDefaultTraits "default traits class", 129 /// it is \c long \c long if the \c Value type is integer, 133 /// By default, it is \c long \c long if the \c Value type is integer, 130 134 /// otherwise it is \c double. 131 135 typedef typename TR::LargeValue LargeValue; … … 389 393 /// \pre \ref run() or \ref findMinMean() must be called before 390 394 /// using this function. 391 LargeValue cycleLength() const {392 return _cycle_length;395 Value cycleLength() const { 396 return static_cast<Value>(_cycle_length); 393 397 } 394 398
Note: See TracChangeset
for help on using the changeset viewer.