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 2012/02/08 23:24:07 UTC
svn commit: r1242144 -
/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java
Author: simonetripodi
Date: Wed Feb 8 22:24:07 2012
New Revision: 1242144
URL: http://svn.apache.org/viewvc?rev=1242144&view=rev
Log:
minor format
Modified:
commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java
Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java?rev=1242144&r1=1242143&r2=1242144&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java (original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/shortestpath/DefaultHeuristicBuilder.java Wed Feb 8 22:24:07 2012
@@ -53,14 +53,14 @@ final class DefaultHeuristicBuilder<V ex
this.orderedMonoid = orderedMonoid;
}
-
/**
* {@inheritDoc}
*/
public <H extends Heuristic<V, W>> WeightedPath<V, WE, W> withEuristic( H heuristic )
{
heuristic = checkNotNull( heuristic, "A* algorithm can not be applied using a null heuristic" );
- // Cost from start along best known path.
+
+ // Cost from start along best known path.
final ShortestDistances<V, W> gScores = new ShortestDistances<V, W>( orderedMonoid );
gScores.setWeight( start, orderedMonoid.zero() );