Changeset 613:b5b5c4ae5107 in lemon-0.x for src/work
- Timestamp:
- 05/11/04 19:37:34 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@796
- Location:
- src/work
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/Doxyfile
r604 r613 401 401 marci/bfs_dfs.h \ 402 402 marci/bfs_dfs_misc.h \ 403 jacint/graph_gen.h 403 jacint/graph_gen.h \ 404 marci/max_bipartite_matching.h 404 405 405 406 # If the value of the INPUT tag contains directories, you can use the -
src/work/marci/bipartite_matching_try_3.cc
r602 r613 132 132 FOR_EACH_LOC(Graph::EdgeIt, e, g) gef.set(e, 0); 133 133 FOR_EACH_LOC(Graph::NodeIt, n, g) gnf.set(n, 0); 134 Max Matching<Graph, ConstMap<Graph::Edge, int>, ConstMap<Graph::Node, int>,134 MaxBipartiteMatching<Graph, ConstMap<Graph::Edge, int>, ConstMap<Graph::Node, int>, 135 135 Graph::EdgeMap<int>, Graph::NodeMap<int> > 136 136 matching_test(g, ge1, gn1, gef, gnf); … … 147 147 FOR_EACH_LOC(Graph::EdgeIt, e, g) gef.set(e, 0); 148 148 //FOR_EACH_LOC(Graph::NodeIt, n, g) gnf.set(n, 0); 149 Max Matching<Graph, ConstMap<Graph::Edge, int>, ConstMap<Graph::Node, int>,149 MaxBipartiteMatching<Graph, ConstMap<Graph::Edge, int>, ConstMap<Graph::Node, int>, 150 150 Graph::EdgeMap<int>, Graph::NodeMap<int> > 151 151 matching_test_1(g, ge1, gn1, gef/*, gnf*/); -
src/work/marci/makefile
r555 r613 5 5 6 6 LEDABINARIES = leda_graph_demo leda_bfs_dfs max_bipartite_matching_demo 7 BINARIES = max_flow_demo iterator_bfs_demo macro_test lg_vs_sg bfsit_vs_byhand bipartite_graph_wrapper_test bipartite_matching_try bipartite_matching_try_ 2 bipartite_matching_try_3 top_sort_test7 BINARIES = max_flow_demo iterator_bfs_demo macro_test lg_vs_sg bfsit_vs_byhand bipartite_graph_wrapper_test bipartite_matching_try bipartite_matching_try_3 top_sort_test 8 8 #gw_vs_not preflow_demo_boost edmonds_karp_demo_boost preflow_demo_jacint preflow_demo_athos edmonds_karp_demo_alpar preflow_demo_leda 9 9 -
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.