numNodes debug output

This commit is contained in:
Leijurv
2018-08-06 07:14:20 -07:00
parent 95086bdcb4
commit 16e31fee88
6 changed files with 27 additions and 13 deletions

View File

@@ -103,7 +103,7 @@ public abstract class AbstractNodeCostSearch implements IPathFinder {
@Override
public Optional<IPath> pathToMostRecentNodeConsidered() {
return Optional.ofNullable(mostRecentConsidered).map(node -> new Path(startNode, node, goal));
return Optional.ofNullable(mostRecentConsidered).map(node -> new Path(startNode, node, goal, 0));
}
@Override
@@ -111,7 +111,7 @@ public abstract class AbstractNodeCostSearch implements IPathFinder {
if (startNode == null || bestSoFar[0] == null)
return Optional.empty();
return Optional.of(new Path(startNode, bestSoFar[0], goal));
return Optional.of(new Path(startNode, bestSoFar[0], goal, 0));
}
@Override