Changeset 498:eb8bfa683d92 in lemon-0.x for src/work
- Timestamp:
- 04/30/04 18:46:19 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@658
- Location:
- src/work/marci
- Files:
-
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci/bipartite_graph_wrapper.h
r497 r498 206 206 /// the \c bool parameter which can be \c S_Class or \c T_Class shows 207 207 /// the color class where the new node is to be inserted. 208 void addNode(bool); 208 Node addNode(bool b) { 209 Node n=Parent::graph->addNode(); 210 bipartite_map.update(); 211 s_false_t_true_map.insert(n, b); 212 return n; 213 } 209 214 210 215 /// A new edge is inserted. 211 216 ///\pre \c tail have to be in \c S_Class and \c head in \c T_Class. 212 void addEdge(const Node& tail, const Node& head); 213 214 void erase(const Node&); 215 void erase(const Edge&); 217 Edge addEdge(const Node& tail, const Node& head) { 218 return Parent::graph->addEdge(tail, head); 219 } 220 221 void erase(const Node& n) { 222 s_false_t_true_map.remove(n); 223 Parent::graph->erase(n); 224 } 225 void erase(const Edge& e) { 226 Parent::graph->erase(e); 227 } 216 228 217 229 void clear() { -
src/work/marci/bipartite_matching_try.cc
r496 r498 113 113 // } 114 114 115 BGW::NodeMap<int> dbyj(bgw);116 BGW::EdgeMap<int> dbyxcj(bgw);115 // BGW::NodeMap<int> dbyj(bgw); 116 // BGW::EdgeMap<int> dbyxcj(bgw); 117 117 118 118 typedef stGraphWrapper<BGW> stGW; -
src/work/marci/bipartite_matching_try_2.cc
r496 r498 113 113 // } 114 114 115 BGW::NodeMap<int> dbyj(bgw);116 BGW::EdgeMap<int> dbyxcj(bgw);115 // BGW::NodeMap<int> dbyj(bgw); 116 // BGW::EdgeMap<int> dbyxcj(bgw); 117 117 118 118 typedef stGraphWrapper<BGW> stGW; -
src/work/marci/makefile
r476 r498 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 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 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
Note: See TracChangeset
for help on using the changeset viewer.