apoc.algo.allSimplePaths

Procedure

apoc.algo.allSimplePaths(startNode NODE, endNode NODE, relTypesAndDirections STRING, maxNodes INTEGER) - runs a search algorithm to find all of the simple paths between the given RELATIONSHIP values, up to a max depth described by maxNodes. The returned paths will not contain loops.

This procedure is not considered safe to run from multiple threads. It is therefore not supported by the parallel runtime (introduced in Neo4j 5.13). For more information, see the Cypher Manual → Parallel runtime.

Signature

apoc.algo.allSimplePaths(startNode :: NODE, endNode :: NODE, relationshipTypesAndDirections :: STRING, maxNodes :: INTEGER) :: (path :: PATH)

Input parameters

Name Type Default

startNode

NODE

null

endNode

NODE

null

relationshipTypesAndDirections

STRING

null

maxNodes

INTEGER

null

Output parameters