# HG changeset patch # User marci # Date 1094124049 0 # Node ID a48964a871412154efe15a0798e06911a66ba37a # Parent 81bf2d76616495bcfd8ba1182a107afc68b92cb7 dimacs.h diff -r 81bf2d766164 -r a48964a87141 src/hugo/dimacs.h --- a/src/hugo/dimacs.h Thu Sep 02 10:54:26 2004 +0000 +++ b/src/hugo/dimacs.h Thu Sep 02 11:20:49 2004 +0000 @@ -71,16 +71,16 @@ is >> i >> j >> _cap; getline(is, str); e=g.addEdge(nodes[i], nodes[j]); - capacity.update(); + //capacity.update(); capacity.set(e, _cap); } else { if ( problem == "min" ) { is >> i >> j >> _cap >> _cost; getline(is, str); e=g.addEdge(nodes[i], nodes[j]); - capacity.update(); + //capacity.update(); capacity.set(e, _cap); - cost.update(); + //cost.update(); cost.set(e, _cost); } else { is >> i >> j; diff -r 81bf2d766164 -r a48964a87141 src/work/marci/graph_wrapper_time.cc --- a/src/work/marci/graph_wrapper_time.cc Thu Sep 02 10:54:26 2004 +0000 +++ b/src/work/marci/graph_wrapper_time.cc Thu Sep 02 11:20:49 2004 +0000 @@ -35,6 +35,7 @@ typedef MaxFlow MyMaxFlow; MyMaxFlow max_flow(g, s, t, cap, flow); max_flow.run(MyMaxFlow::NO_FLOW); + cout << "flow value: " << max_flow.flowValue() << endl; cout << ts << endl; }