diff -r 94387da47f79 -r c5fd2d996909 lemon/max_matching.h --- a/lemon/max_matching.h Thu Mar 05 10:13:20 2009 +0000 +++ b/lemon/max_matching.h Sun Mar 29 23:08:20 2009 +0200 @@ -55,12 +55,12 @@ /// tight. This decomposition can be attained by calling \c /// decomposition() after running the algorithm. /// - /// \param _Graph The graph type the algorithm runs on. - template + /// \param GR The graph type the algorithm runs on. + template class MaxMatching { public: - typedef _Graph Graph; + typedef GR Graph; typedef typename Graph::template NodeMap MatchingMap; @@ -463,7 +463,7 @@ /// Initialize the matching from a \c bool valued \c Edge map. This /// map must have the property that there are no two incident edges /// with true value, ie. it contains a matching. - /// \return %True if the map contains a matching. + /// \return \c true if the map contains a matching. template bool matchingInit(const MatchingMap& matching) { createStructures(); @@ -613,7 +613,7 @@ /// This class provides an efficient implementation of Edmond's /// maximum weighted matching algorithm. The implementation is based /// on extensive use of priority queues and provides - /// \f$O(nm\log(n))\f$ time complexity. + /// \f$O(nm\log n)\f$ time complexity. /// /// The maximum weighted matching problem is to find undirected /// edges in the graph with maximum overall weight and no two of @@ -647,13 +647,16 @@ /// "BlossomIt" nested class, which is able to iterate on the nodes /// of a blossom. If the value type is integral then the dual /// solution is multiplied by \ref MaxWeightedMatching::dualScale "4". - template > + template > class MaxWeightedMatching { public: - typedef _Graph Graph; - typedef _WeightMap WeightMap; + ///\e + typedef GR Graph; + ///\e + typedef WM WeightMap; + ///\e typedef typename WeightMap::Value Value; /// \brief Scaling factor for dual solution @@ -1957,7 +1960,7 @@ /// This class provides an efficient implementation of Edmond's /// maximum weighted perfect matching algorithm. The implementation /// is based on extensive use of priority queues and provides - /// \f$O(nm\log(n))\f$ time complexity. + /// \f$O(nm\log n)\f$ time complexity. /// /// The maximum weighted matching problem is to find undirected /// edges in the graph with maximum overall weight and no two of @@ -1990,13 +1993,13 @@ /// "BlossomIt" nested class which is able to iterate on the nodes /// of a blossom. If the value type is integral then the dual /// solution is multiplied by \ref MaxWeightedMatching::dualScale "4". - template > + template > class MaxWeightedPerfectMatching { public: - typedef _Graph Graph; - typedef _WeightMap WeightMap; + typedef GR Graph; + typedef WM WeightMap; typedef typename WeightMap::Value Value; /// \brief Scaling factor for dual solution