Changeset 773:ce9438c5a82d in lemon-0.x for src
- 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
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/hugo/max_flow.h
r761 r773 839 839 //putting the active nodes into the stack 840 840 int lev=level[w]; 841 if ( exc > 0 && lev < n && w != t ) 841 if ( exc > 0 && lev < n && Node(w) != t ) 842 ///\bug if ( exc > 0 && lev < n && w != t ) tempararily for working with wrappers. in hugo 0.2 it will work. Amugy mukodik sage_graph-fal, de smart_graph-fal nem, azt hozzatennem. 842 843 { 843 844 next.set(w,first[lev]); … … 856 857 { 857 858 858 Numlev=level[w];859 int lev=level[w]; 859 860 860 861 Node right_n=right[w]; -
src/work/makefile
r762 r773 1 1 INCLUDEDIRS ?= -I.. -I. -I./{marci,jacint,alpar,klao,akos} 2 CXXFLAGS = -g -O 2-W -Wall $(INCLUDEDIRS) -ansi -pedantic2 CXXFLAGS = -g -O3 -W -Wall $(INCLUDEDIRS) -ansi -pedantic 3 3 4 4 BINARIES ?= bin_heap_demo -
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.