[Lemon-commits] [lemon_svn] jacint: r592 - hugo/trunk/src/work/jacint

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:40:25 CET 2006


Author: jacint
Date: Tue Apr 27 15:47:05 2004
New Revision: 592

Modified:
   hugo/trunk/src/work/jacint/preflow_res.h

Log:
debug


Modified: hugo/trunk/src/work/jacint/preflow_res.h
==============================================================================
--- hugo/trunk/src/work/jacint/preflow_res.h	(original)
+++ hugo/trunk/src/work/jacint/preflow_res.h	Tue Apr 27 15:47:05 2004
@@ -126,7 +126,7 @@
 	  InEdgeIt e;
 	  for(G.first(e,v); G.valid(e); G.next(e)) exc+=flow[e];
 	  OutEdgeIt f;
-	  for(G.first(f,v); G.valid(f); G.next(f)) exc-=flow[e];
+	  for(G.first(f,v); G.valid(f); G.next(f)) exc-=flow[f];
 
 	  excess.set(v,exc);	  
 
@@ -472,20 +472,18 @@
     }
 
     
-    void reset_target (Node _t) {t=_t;}
-    void reset_source (Node _s) {s=_s;}
+    
+    void resetTarget (Node _t) {t=_t;}
+    void resetSource (Node _s) {s=_s;}
    
-    template<typename _CapMap>   
-    void reset_cap (_CapMap _cap) {capacity=_cap;}
+    void resetCap (CapMap _cap) {capacity=_cap;}
 
-    template<typename _FlowMap>   
-    void reset_cap (_FlowMap _flow, bool _constzero) {
+    void resetFlow (FlowMap _flow, bool _constzero) {
       flow=_flow;
       constzero=_constzero;
     }
 
 
-
   };
 
 } //namespace hugo



More information about the Lemon-commits mailing list