[Lemon-commits] [lemon_svn] marci: r1077 - in hugo/trunk/src: hugo work/marci
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:43:07 CET 2006
Author: marci
Date: Thu Sep 2 13:20:49 2004
New Revision: 1077
Modified:
hugo/trunk/src/hugo/dimacs.h
hugo/trunk/src/work/marci/graph_wrapper_time.cc
Log:
dimacs.h
Modified: hugo/trunk/src/hugo/dimacs.h
==============================================================================
--- hugo/trunk/src/hugo/dimacs.h (original)
+++ hugo/trunk/src/hugo/dimacs.h Thu Sep 2 13:20:49 2004
@@ -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;
Modified: hugo/trunk/src/work/marci/graph_wrapper_time.cc
==============================================================================
--- hugo/trunk/src/work/marci/graph_wrapper_time.cc (original)
+++ hugo/trunk/src/work/marci/graph_wrapper_time.cc Thu Sep 2 13:20:49 2004
@@ -35,6 +35,7 @@
typedef MaxFlow<Graph, int, FlowMap, FlowMap> 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;
}
More information about the Lemon-commits
mailing list