apoc.algo.aStarConfig
Procedure APOC Core
apoc.algo.aStar(startNode, endNode, 'KNOWS|<WORKS_WITH|IS_MANAGER_OF>', {weight:'dist',default:10,x:'lon',y:'lat'}) YIELD path, weight - run A* with relationship property name as cost function
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 |