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 nodes, 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 |
Was this page helpful?