apoc.algo.aStar
Procedure
apoc.algo.aStar(startNode NODE, endNode NODE, relTypesAndDirections STRING, weightPropertyName STRING, latPropertyName STRING, lonPropertyName STRING)
- runs the A* search algorithm to find the optimal path between two NODE
values, using the given RELATIONSHIP
property name for the cost function.
Signature
apoc.algo.aStar(startNode :: NODE, endNode :: NODE, relationshipTypesAndDirections :: STRING, weightPropertyName :: STRING, latPropertyName :: STRING, lonPropertyName :: STRING) :: (path :: PATH, weight :: FLOAT)
Input parameters
Name | Type | Default |
---|---|---|
startNode |
NODE |
null |
endNode |
NODE |
null |
relationshipTypesAndDirections |
STRING |
null |
weightPropertyName |
STRING |
null |
latPropertyName |
STRING |
null |
lonPropertyName |
STRING |
null |