commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1298219 - in /commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow: DefaultFromHeadBuilder.java DefaultToTailBuilder.java
Date Wed, 07 Mar 2012 23:36:19 GMT
Author: simonetripodi
Date: Wed Mar  7 23:36:19 2012
New Revision: 1298219

URL: http://svn.apache.org/viewvc?rev=1298219&view=rev
Log:
linking mapper that gives weights for edges

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

Modified: commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultFromHeadBuilder.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultFromHeadBuilder.java?rev=1298219&r1=1298218&r2=1298219&view=diff
==============================================================================
--- commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultFromHeadBuilder.java
(original)
+++ commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultFromHeadBuilder.java
Wed Mar  7 23:36:19 2012
@@ -49,7 +49,7 @@ final class DefaultFromHeadBuilder<V, WE
     public ToTailBuilder<V, WE, W, G> from( V head )
     {
         head = checkNotNull( head, "head vertex has to be specifies when looking for the
max flow" );
-        return new DefaultToTailBuilder<V, WE, W, G>( graph, head );
+        return new DefaultToTailBuilder<V, WE, W, G>( graph, weightedEdges, head );
     }
 
 }

Modified: commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultToTailBuilder.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultToTailBuilder.java?rev=1298219&r1=1298218&r2=1298219&view=diff
==============================================================================
--- commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultToTailBuilder.java
(original)
+++ commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/main/java/org/apache/commons/graph/flow/DefaultToTailBuilder.java
Wed Mar  7 23:36:19 2012
@@ -22,6 +22,7 @@ package org.apache.commons.graph.flow;
 import static org.apache.commons.graph.utils.Assertions.checkNotNull;
 
 import org.apache.commons.graph.DirectedGraph;
+import org.apache.commons.graph.Mapper;
 
 /**
  * {@link DefaultToTailBuilder} implementation.
@@ -37,11 +38,14 @@ final class DefaultToTailBuilder<V, WE, 
 
     private final G graph;
 
+    private final Mapper<WE, W> weightedEdges;
+
     private final V head;
 
-    public DefaultToTailBuilder( G graph, V head )
+    public DefaultToTailBuilder( G graph, Mapper<WE, W> weightedEdges, V head )
     {
         this.graph = graph;
+        this.weightedEdges = weightedEdges;
         this.head = head;
     }
 



Mime
View raw message