Changeset 613:b5b5c4ae5107 in lemon-0.x for src/work/marci/max_bipartite_matching.h
- Timestamp:
- 05/11/04 19:37:34 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@796
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci/max_bipartite_matching.h
r559 r613 34 34 // }; 35 35 36 /// A bipartite matching class. 36 /// \brief A bipartite matching class. 37 /// 37 38 /// This class reduces the matching problem to a flow problem and 38 39 /// a preflow is used on a wrapper. Such a generic approach means that … … 40 41 /// a similar way. Due to the efficiency of the preflow algorithm, an 41 42 /// efficient matching framework is obtained. 43 /// \ingroup galgs 42 44 template <typename Graph, typename EdgeCap, typename NodeCap, 43 45 typename EdgeFlow, typename NodeFlow> 44 class Max Matching {46 class MaxBipartiteMatching { 45 47 protected: 46 48 // EdgeCap* edge_cap; … … 66 68 ///\bug Note that the values in _edge_flow and _node_flow have 67 69 /// to form a flow. 68 Max Matching(Graph& _g, EdgeCap& _edge_cap, NodeCap& _node_cap,70 MaxBipartiteMatching(Graph& _g, EdgeCap& _edge_cap, NodeCap& _node_cap, 69 71 EdgeFlow& _edge_flow, NodeFlow& _node_flow) : 70 72 stgw(_g), … … 77 79 ///\bug Note that the values in _edge_flow and _node_flow have 78 80 /// to form a flow. 79 Max Matching(Graph& _g, EdgeCap& _edge_cap, NodeCap& _node_cap,81 MaxBipartiteMatching(Graph& _g, EdgeCap& _edge_cap, NodeCap& _node_cap, 80 82 EdgeFlow& _edge_flow/*, NodeFlow& _node_flow*/) : 81 83 stgw(_g), … … 85 87 mf(stgw, stgw.S_NODE, stgw.T_NODE, cap, flow) { } 86 88 /// The class have a nontrivial destructor. 87 ~Max Matching() { if (node_flow) delete node_flow; }89 ~MaxBipartiteMatching() { if (node_flow) delete node_flow; } 88 90 /// run computes the max matching. 89 91 void run() { mf.run(); }
Note: See TracChangeset
for help on using the changeset viewer.