Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/ROOT/pages/patterns/reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ Note that it is possible to pass a fixed length path pattern (with a single rela
=== Rules

[[shortest-functions-rules-var-length-restriction]]
==== Restricted to variable length
==== Restricted to variable-length relationships

The pattern in the path selector function must be a variable-length relationship and not a quantified path pattern.

Expand Down Expand Up @@ -1470,14 +1470,14 @@ Return a single shortest path for each distinct pair of nodes matching `(:A)` an

[source, role=noheader]
----
MATCH shortestPath((:A)-[:R]->{0,10}(:B))
MATCH shortestPath((:A)-[:R*0..10]->(:B))
----

Return all paths equal to the shortest path length for each distinct pair of nodes matching `(:A)` and `(:B)`:

[source, role=noheader]
----
MATCH allShortestPaths((:A)-[:R]->{0,10}(:B))
MATCH allShortestPaths((:A)-[:R*0..10]->(:B))
----

[[graph-patterns]]
Expand Down
Loading