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 )
         {


Reply via email to