apoc.algo.aStarConfig

Procedure

apoc.algo.aStarConfig(startNode NODE, endNode NODE, relTypesAndDirections STRING, config MAP<STRING, ANY>) - runs the A* search algorithm to find the optimal path between two NODE values, using the given RELATIONSHIP property name for the cost function. This procedure looks for weight, latitude and longitude properties in the config. == Signature

apoc.algo.aStarConfig(startNode :: NODE, endNode :: NODE, relationshipTypesAndDirections :: STRING, config :: MAP) :: (path :: PATH, weight :: FLOAT)

Input parameters

Name Type Default

startNode

NODE

null

endNode

NODE

null

relationshipTypesAndDirections

STRING

null

config

MAP

null

Output parameters

Name Type

path

PATH

weight

FLOAT