commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1298848 - /commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultMaxFlowAlgorithmSelector.java
Date Fri, 09 Mar 2012 14:27:48 GMT
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() );
         }



Mime
View raw message