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 2011/06/24 16:19:00 UTC
svn commit: r1139315 -
/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/AllVertexPairsShortestPath.java
Author: simonetripodi
Date: Fri Jun 24 14:18:59 2011
New Revision: 1139315
URL: http://svn.apache.org/viewvc?rev=1139315&view=rev
Log:
no needs to store the VertexPair instance
Modified:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/AllVertexPairsShortestPath.java
Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/AllVertexPairsShortestPath.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/AllVertexPairsShortestPath.java?rev=1139315&r1=1139314&r2=1139315&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/AllVertexPairsShortestPath.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/AllVertexPairsShortestPath.java Fri Jun 24 14:18:59 2011
@@ -91,8 +91,7 @@ public final class AllVertexPairsShortes
throw new IllegalArgumentException( "Impossible to find the shortest path to a null target" );
}
- VertexPair<V> vertexPair = new VertexPair<V>( source, target );
- WeightedPath<V, WE> path = paths.get( vertexPair );
+ WeightedPath<V, WE> path = paths.get( new VertexPair<V>( source, target ) );
if ( path == null )
{