1.1 --- a/src/work/jacint/preflow_res.h Tue Apr 27 13:44:14 2004 +0000
1.2 +++ b/src/work/jacint/preflow_res.h Tue Apr 27 13:47:05 2004 +0000
1.3 @@ -126,7 +126,7 @@
1.4 InEdgeIt e;
1.5 for(G.first(e,v); G.valid(e); G.next(e)) exc+=flow[e];
1.6 OutEdgeIt f;
1.7 - for(G.first(f,v); G.valid(f); G.next(f)) exc-=flow[e];
1.8 + for(G.first(f,v); G.valid(f); G.next(f)) exc-=flow[f];
1.9
1.10 excess.set(v,exc);
1.11
1.12 @@ -472,20 +472,18 @@
1.13 }
1.14
1.15
1.16 - void reset_target (Node _t) {t=_t;}
1.17 - void reset_source (Node _s) {s=_s;}
1.18 +
1.19 + void resetTarget (Node _t) {t=_t;}
1.20 + void resetSource (Node _s) {s=_s;}
1.21
1.22 - template<typename _CapMap>
1.23 - void reset_cap (_CapMap _cap) {capacity=_cap;}
1.24 + void resetCap (CapMap _cap) {capacity=_cap;}
1.25
1.26 - template<typename _FlowMap>
1.27 - void reset_cap (_FlowMap _flow, bool _constzero) {
1.28 + void resetFlow (FlowMap _flow, bool _constzero) {
1.29 flow=_flow;
1.30 constzero=_constzero;
1.31 }
1.32
1.33
1.34 -
1.35 };
1.36
1.37 } //namespace hugo