Changeset 777:a82713ed19f3 in lemon-0.x for src/work/marci/graph_wrapper_time.cc
- Timestamp:
- 08/31/04 19:54:22 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1070
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci/graph_wrapper_time.cc
r773 r777 1 1 // -*- c++ -*- 2 3 // Use a DIMACS max flow file as follows: 4 // graph_wrapper_time dimacs_max_flow_file 2 5 3 6 #include <iostream> … … 29 32 Timer ts; 30 33 ts.reset(); 31 cout << g.nodeNum() << endl; 32 cout << g.edgeNum() << endl; 34 33 35 typedef MaxFlow<Graph, int, FlowMap, FlowMap> MyMaxFlow; 34 36 MyMaxFlow max_flow(g, s, t, cap, flow); … … 42 44 typedef ListGraph Graph; 43 45 Graph g; 44 // cout << g.id(g.addNode()) << endl;45 // cout << g.id(g.addNode()) << endl;46 // cout << g.nodeNum() << endl;47 46 timeTest<Graph>(in, g); 48 47 typedef GraphWrapper<Graph> Graph1; 49 48 Graph1 g1(g); 50 // g1.clear();51 // cout << g.id(g1.addNode()) << endl;52 // cout << g.id(g1.addNode()) << endl;53 // cout << g1.nodeNum() << endl;54 // g1.clear();55 49 timeTest<Graph1>(in, g1); 56 50 typedef GraphWrapper<Graph1> Graph2; … … 60 54 Graph3 g3(g2); 61 55 timeTest<Graph3>(in, g3); 62 //typedef GraphWrapper<Graph3> Graph4;63 //Graph4 g4(g3);64 //timeTest<Graph4>(in, g4);65 //typedef GraphWrapper<Graph4> Graph5;66 //Graph5 g5(g4);67 //timeTest<Graph5>(in, g5);68 //typedef GraphWrapper<Graph5> Graph6;69 //Graph6 g6(g5);70 //timeTest<Graph6>(in, g6);71 //typedef GraphWrapper<Graph6> Graph7;72 //Graph7 g7(g6);73 //timeTest<Graph7>(in, g7);56 typedef GraphWrapper<Graph3> Graph4; 57 Graph4 g4(g3); 58 timeTest<Graph4>(in, g4); 59 typedef GraphWrapper<Graph4> Graph5; 60 Graph5 g5(g4); 61 timeTest<Graph5>(in, g5); 62 typedef GraphWrapper<Graph5> Graph6; 63 Graph6 g6(g5); 64 timeTest<Graph6>(in, g6); 65 typedef GraphWrapper<Graph6> Graph7; 66 Graph7 g7(g6); 67 timeTest<Graph7>(in, g7); 74 68 75 69 return 0;
Note: See TracChangeset
for help on using the changeset viewer.