[Lemon-commits] [lemon_svn] marci: r1202 - hugo/trunk/src/hugo

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


Author: marci
Date: Tue Sep 21 23:28:43 2004
New Revision: 1202

Modified:
   hugo/trunk/src/hugo/mincostflows.h

Log:
todo for real comparison


Modified: hugo/trunk/src/hugo/mincostflows.h
==============================================================================
--- hugo/trunk/src/hugo/mincostflows.h	(original)
+++ hugo/trunk/src/hugo/mincostflows.h	Tue Sep 21 23:28:43 2004
@@ -215,12 +215,13 @@
 	//C^{\Pi}_{i,j}
 	mod_pot = length[e]-potential[G.head(e)]+potential[G.tail(e)];
 	fl_e = flow[e];
-	//	std::cout << fl_e << std::endl;
-	if (0<fl_e && fl_e<capacity[e]){
+	if (0<fl_e && fl_e<capacity[e]) {
+	  /// \todo better comparison is needed for real types, moreover, 
+	  /// this comparison here is superfluous.
 	  if (mod_pot != 0)
 	    return false;
-	}
-	else{
+	} 
+	else {
 	  if (mod_pot > 0 && fl_e != 0)
 	    return false;
 	  if (mod_pot < 0 && fl_e != capacity[e])



More information about the Lemon-commits mailing list