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
8 changes: 6 additions & 2 deletions modules/ROOT/pages/patterns/shortest-paths.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,12 @@ RETURN length(p) AS result
----
// end::patterns_shortest_paths_shortest_k[]

[TIP]
Note that this and the following examples in this section use a quantified relationship `-[:LINK]-+`, which is composed of a relationship pattern `-[:LINK]-` and a postfix quantifier `+`. The relationship pattern is only concerned with following relationships with type `LINK`, and will otherwise traverse any node along the way. There is no arrowhead `<` or `>` on the relationship pattern, allowing the pattern to match relationships going in either direction. This represents the fact that trains can go in both directions along the `LINK` relationships between Stations. The `+` quantifier means that one or more relationships should be matched. For more information, see xref:patterns/reference.adoc#quantified-relationships[Syntax and semantics - quantified relationships].
[NOTE]
Note that this and the following examples in this section use a quantified relationship `-[:LINK]-\+`, which is composed of a relationship pattern `-[:LINK]-` and a postfix quantifier `+`.
The relationship pattern is only concerned with following relationships with type `LINK`, and will otherwise traverse any node along the way.
There is no arrowhead `<` or `>` on the relationship pattern, allowing the pattern to match relationships going in either direction.
This represents the fact that trains can go in both directions along the `LINK` relationships between Stations.
The `+` quantifier means that one or more relationships should be matched. For more information, see xref:patterns/reference.adoc#quantified-relationships[Syntax and semantics - quantified relationships].

.Result
[role="queryresult",options="header,footer",cols="m"]
Expand Down