[Lemon-commits] [lemon_svn] alpar: r991 - hugo/trunk/src/hugo
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:42:36 CET 2006
Author: alpar
Date: Fri Jul 23 14:27:24 2004
New Revision: 991
Modified:
hugo/trunk/src/hugo/max_flow.h
Log:
gcc-3.4 tries to compile the _unused_ members of
an instantiated template class
Modified: hugo/trunk/src/hugo/max_flow.h
==============================================================================
--- hugo/trunk/src/hugo/max_flow.h (original)
+++ hugo/trunk/src/hugo/max_flow.h Fri Jul 23 14:27:24 2004
@@ -418,8 +418,8 @@
/// It can be called already after running \ref preflowPhase1.
Num flowValue() const {
Num a=0;
- for(InEdgeIt e(*g,t);g->valid(e);G.next(e)) a+=(*flow)[e];
- for(OutEdgeIt e(*g,t);g->valid(e);G.next(e)) a-=(*flow)[e];
+ for(InEdgeIt e(*g,t);g->valid(e);g->next(e)) a+=(*flow)[e];
+ for(OutEdgeIt e(*g,t);g->valid(e);g->next(e)) a-=(*flow)[e];
//marci figyu: excess[t] epp ezt adja preflow 1. fazisa utan
}
@@ -453,24 +453,6 @@
case AFTER_NOTHING:
minMinCut(M);
break;
- case AFTER_AUGMENTING:
- for(g->first(v); g->valid(v); g->next(v)) {
- if (level[v]) {
- M.set(v, true);
- } else {
- M.set(v, false);
- }
- }
- break;
- case AFTER_FAST_AUGMENTING:
- for(g->first(v); g->valid(v); g->next(v)) {
- if (level[v]==number_of_augmentations) {
- M.set(v, true);
- } else {
- M.set(v, false);
- }
- }
- break;
}
}
More information about the Lemon-commits
mailing list