You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2012/03/09 15:27:48 UTC

svn commit: r1298848 - /commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultMaxFlowAlgorithmSelector.java

Author: simonetripodi
Date: Fri Mar  9 14:27:48 2012
New Revision: 1298848

URL: http://svn.apache.org/viewvc?rev=1298848&view=rev
Log:
fixed broken wrapper behavior, return 0 when wrapped edge doesn't exist

Modified:
    commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultMaxFlowAlgorithmSelector.java

Modified: commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultMaxFlowAlgorithmSelector.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultMaxFlowAlgorithmSelector.java?rev=1298848&r1=1298847&r2=1298848&view=diff
==============================================================================
--- commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultMaxFlowAlgorithmSelector.java (original)
+++ commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultMaxFlowAlgorithmSelector.java Fri Mar  9 14:27:48 2012
@@ -184,7 +184,7 @@ final class DefaultMaxFlowAlgorithmSelec
         {
             if ( input.getWrapped() == null )
             {
-                weightOperations.zero();
+                return weightOperations.zero();
             }
             return weightedEdges.map( input.getWrapped() );
         }