apoc.algo.dijkstra
Procedure
apoc.algo.dijkstra(startNode Node, endNode Node, relTypesAndDirections String, weightPropertyName String, defaultWeight Float, numberOfWantedPaths Integer)
- runs Dijkstra’s algorithm using the given relationship property as the cost function.
Signature
apoc.algo.dijkstra(startNode :: NODE?, endNode :: NODE?, relationshipTypesAndDirections :: STRING?, weightPropertyName :: STRING?, defaultWeight = NaN :: FLOAT?, numberOfWantedPaths = 1 :: INTEGER?) :: (path :: PATH?, weight :: FLOAT?)
Input parameters
Name | Type | Default |
---|---|---|
startNode |
NODE? |
null |
endNode |
NODE? |
null |
relationshipTypesAndDirections |
STRING? |
null |
weightPropertyName |
STRING? |
null |
defaultWeight |
FLOAT? |
NaN |
numberOfWantedPaths |
INTEGER? |
1 |
Was this page helpful?