Changeset 196:8a9b9360463e in lemon-0.x for src/work/marci/max_bipartite_matching_demo.cc
- Timestamp:
- 03/17/04 17:10:33 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@273
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci/max_bipartite_matching_demo.cc
r195 r196 5 5 #include <cstdlib> 6 6 7 #include <LEDA/graph.h> 8 #include <leda_graph_wrapper.h> 7 //#include <LEDA/graph.h> 8 //#include <leda_graph_wrapper.h> 9 #include <list_graph.h> 9 10 #include <dimacs.h> 10 11 #include <time_measure.h> … … 39 40 40 41 int main() { 41 leda::graph g; 42 typedef LedaGraphWrapper<leda::graph> Graph; 43 Graph G(g); 42 // leda::graph g; 43 // typedef LedaGraphWrapper<leda::graph> Graph; 44 // Graph G(g); 45 typedef ListGraph Graph; 46 Graph G; 44 47 45 48 typedef Graph::Node Node; … … 62 65 t_nodes.push_back(G.addNode()); 63 66 } 64 //random_init();65 //for(int i=0; i<6; ++i) {66 //G.addEdge(s_nodes[random(4)], t_nodes[random(4)]);67 //}67 random_init(); 68 for(int i=0; i<6; ++i) { 69 G.addEdge(s_nodes[random(4)], t_nodes[random(4)]); 70 } 68 71 69 G.addEdge(s_nodes[2], t_nodes[4-4]);70 G.addEdge(s_nodes[2], t_nodes[7-4]);71 G.addEdge(s_nodes[2], t_nodes[4-4]);72 G.addEdge(s_nodes[3], t_nodes[6-4]);73 G.addEdge(s_nodes[3], t_nodes[5-4]);74 G.addEdge(s_nodes[3], t_nodes[5-4]);72 // G.addEdge(s_nodes[2], t_nodes[4-4]); 73 // G.addEdge(s_nodes[2], t_nodes[7-4]); 74 // G.addEdge(s_nodes[2], t_nodes[4-4]); 75 // G.addEdge(s_nodes[3], t_nodes[6-4]); 76 // G.addEdge(s_nodes[3], t_nodes[5-4]); 77 // G.addEdge(s_nodes[3], t_nodes[5-4]); 75 78 76 79
Note: See TracChangeset
for help on using the changeset viewer.