double dy = (Double) node.getProperty( "y" ) - (Double) goal.getProperty( "y" );
double result = Math.sqrt( Math.pow( dx, 2 ) + Math.pow( dy, 2 ) );
return result;
}
};
<BUG>AStar astar = new AStar( graphDb, TraversalFactory.expanderForAllTypes(),
</BUG>
new DoubleEvaluator( "length" ), estimateEvaluator );
Path path = astar.findSinglePath( nodeA, nodeC );
}

double dy = (Double) node.getProperty( "y" ) - (Double) goal.getProperty( "y" );
double result = Math.sqrt( Math.pow( dx, 2 ) + Math.pow( dy, 2 ) );
return result;
}
};
PathFinder<WeightedPath> astar = new AStar( graphDb, TraversalFactory.expanderForAllTypes(),
new DoubleEvaluator( "length" ), estimateEvaluator );
Path path = astar.findSinglePath( nodeA, nodeC );
}
