|
2 | 2 |
|
3 | 3 | import apoc.Extended; |
4 | 4 | import apoc.result.WeightedPathResult; |
5 | | -import org.neo4j.graphalgo.BasicEvaluationContext; |
6 | | -import org.neo4j.graphalgo.CommonEvaluators; |
7 | | -import org.neo4j.graphalgo.GraphAlgoFactory; |
8 | | -import org.neo4j.graphalgo.PathFinder; |
9 | | -import org.neo4j.graphalgo.WeightedPath; |
| 5 | +//import org.neo4j.graphalgo.BasicEvaluationContext; |
| 6 | +//import org.neo4j.graphalgo.CommonEvaluators; |
| 7 | +//import org.neo4j.graphalgo.GraphAlgoFactory; |
| 8 | +//import org.neo4j.graphalgo.PathFinder; |
| 9 | +//import org.neo4j.graphalgo.WeightedPath; |
10 | 10 | import org.neo4j.graphdb.GraphDatabaseService; |
11 | 11 | import org.neo4j.graphdb.Node; |
12 | 12 | import org.neo4j.graphdb.Transaction; |
@@ -37,12 +37,13 @@ public Stream<WeightedPathResult> aStarWithPoint( |
37 | 37 | @Name("weightPropertyName") String weightPropertyName, |
38 | 38 | @Name("pointPropertyName") String pointPropertyName) { |
39 | 39 |
|
40 | | - PathFinder<WeightedPath> algo = GraphAlgoFactory.aStar( |
41 | | - new BasicEvaluationContext(tx, db), |
42 | | - buildPathExpander(relTypesAndDirs), |
43 | | - CommonEvaluators.doubleCostEvaluator(weightPropertyName), |
44 | | - new PathFindingUtils.GeoEstimateEvaluatorPointCustom(pointPropertyName)); |
45 | | - return WeightedPathResult.streamWeightedPathResult(startNode, endNode, algo); |
| 40 | +// PathFinder<WeightedPath> algo = GraphAlgoFactory.aStar( |
| 41 | +// new BasicEvaluationContext(tx, db), |
| 42 | +// buildPathExpander(relTypesAndDirs), |
| 43 | +// CommonEvaluators.doubleCostEvaluator(weightPropertyName), |
| 44 | +// new PathFindingUtils.GeoEstimateEvaluatorPointCustom(pointPropertyName)); |
| 45 | +// return WeightedPathResult.streamWeightedPathResult(startNode, endNode, algo); |
| 46 | + return Stream.empty(); |
46 | 47 | } |
47 | 48 |
|
48 | 49 | } |
0 commit comments