Changeset 196:8a9b9360463e in lemon-0.x for src/work/marci
- Timestamp:
- 03/17/04 17:10:33 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@273
- Location:
- src/work/marci
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci/makefile
r194 r196 4 4 CXX3 := $(shell type -p g++-3.3 || type -p g++-3.2 || type -p g++-3.0 || type -p g++-3 || echo g++) 5 5 #CXXFLAGS = -W -Wall -ansi -pedantic -I. -I.. -I../alpar 6 LEDAROOT ?= /ledasrc/LEDA-4.16 #LEDAROOT ?= /ledasrc/LEDA-4.1 7 7 BOOSTROOT ?= /home/marci/boost 8 8 INCLUDEDIRS ?= -I../../include -I.. -I. -I../{marci,jacint,alpar,klao,akos,athos} -I$(LEDAROOT)/incl -I$(BOOSTROOT) 9 9 CXXFLAGS = -g -O -W -Wall $(INCLUDEDIRS) -ansi -pedantic 10 10 11 12 BINARIES = edmonds_karp_demo preflow_demo_leda lg_vs_sg leda_graph_demo leda_bfs_dfsmax_bipartite_matching_demo13 #preflow_demo_boost edmonds_karp_demo_boost preflow_demo_jacint preflow_demo_athos edmonds_karp_demo_alpar 11 LEDABINARIES = lg_vs_sg leda_graph_demo leda_bfs_dfs 12 BINARIES = edmonds_karp_demo max_bipartite_matching_demo 13 #preflow_demo_boost edmonds_karp_demo_boost preflow_demo_jacint preflow_demo_athos edmonds_karp_demo_alpar preflow_demo_leda 14 14 15 15 all: $(BINARIES) -
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.