In the neo4j APOC procedures there's apoc.algo.dijkstra
algorithm and it is structured like: apoc.algo.dijkstra(start, end, 'RELATIONSHIP', 'attribute')
, and I know that in the RELATIONSHIP
argument you can include things like '<' or '>' or '|' indicators. But I do not know what they mean or what they do.
The name of that parameter is relationshipTypesAndDirections. < means incoming relationship, > means outgoing relationship, | is the OR logical operator.
For example:
KNOWS|<WORKS_WITH|IS_MANAGER_OF>
That means the pathfinding algorithm will look for KNOWS relationship in any direction, incoming WORKS_WITH relationship, or outgoing IS_MANAGER_OF relationship.