commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1138208 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/Dijkstra.java
Date Tue, 21 Jun 2011 22:09:48 GMT
Author: simonetripodi
Date: Tue Jun 21 22:09:48 2011
New Revision: 1138208

URL: http://svn.apache.org/viewvc?rev=1138208&view=rev
Log:
no needs to store outbound edges in a temporary variable

Modified:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/Dijkstra.java

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/Dijkstra.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/Dijkstra.java?rev=1138208&r1=1138207&r2=1138208&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/Dijkstra.java
(original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/Dijkstra.java
Tue Jun 21 22:09:48 2011
@@ -86,8 +86,7 @@ public final class Dijkstra
 
             settledNodes.add( vertex );
 
-            Set<WE> edges = graph.getOutbound( vertex );
-            for ( WE edge : edges )
+            for ( WE edge : graph.getOutbound( vertex ) )
             {
                 V v = getConnectedVertex( vertex, edge );
 



Mime
View raw message