Changeset 773:ce9438c5a82d in lemon-0.x for src/work/marci
- Timestamp:
- 08/25/04 20:55:57 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1043
- Location:
- src/work/marci
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci/bfsit_vs_byhand.cc
r762 r773 4 4 5 5 #include <sage_graph.h> 6 //#include <smart_graph.h>6 #include <hugo/smart_graph.h> 7 7 #include <hugo/dimacs.h> 8 8 #include <hugo/time_measure.h> … … 11 11 12 12 using namespace hugo; 13 14 using std::cout; 15 using std::endl; 13 16 14 17 int main() { … … 21 24 22 25 Graph g; 23 Node s, t;26 //Node s; 24 27 //Graph::EdgeMap<int> cap(g); 25 28 //readDimacsMaxFlow(std::cin, g, s, t, cap); 26 29 readDimacs(std::cin, g); 30 NodeIt s; 31 g.first(s); 32 33 cout << g.nodeNum() << endl; 34 cout << g.edgeNum() << endl; 27 35 28 36 Graph::NodeMap<OutEdgeIt> pred(g); 37 cout << "iteration time of bfs written by hand..." << endl; 29 38 Timer ts; 30 39 { … … 34 43 pred.set(s, INVALID); 35 44 std::queue<Node> bfs_queue; 36 bfs_queue.push( t);45 bfs_queue.push(s); 37 46 while (!bfs_queue.empty()) { 38 47 Node v=bfs_queue.front(); … … 52 61 } 53 62 63 cout << "iteration time with bfs iterator..." << endl; 54 64 { 55 65 ts.reset(); -
src/work/marci/makefile
r771 r773 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_vs_sg bfsit_vs_byhand bipartite_graph_wrapper_test bipartite_matching_demo top_sort_test max_flow_17 BINARIES = graph_wrapper_time max_flow_demo iterator_bfs_demo macro_test lg_vs_sg_vs_sg bfsit_vs_byhand bipartite_graph_wrapper_test bipartite_matching_demo top_sort_test max_flow_1 proba7 8 8 #BINARIES = preflow_bug 9 9 #gw_vs_not preflow_demo_boost edmonds_karp_demo_boost preflow_demo_jacint preflow_demo_athos edmonds_karp_demo_alpar preflow_demo_leda
Note: See TracChangeset
for help on using the changeset viewer.