Skip to content

Commit cb8d410

Browse files
fix SHORTEST note (#1217)
Co-authored-by: Neil Dewhurst <[email protected]>
1 parent 9baee9d commit cb8d410

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

modules/ROOT/pages/patterns/shortest-paths.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,12 @@ RETURN length(p) AS result
7878
----
7979
// end::patterns_shortest_paths_shortest_k[]
8080

81-
[TIP]
82-
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].
81+
[NOTE]
82+
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 `+`.
83+
The relationship pattern is only concerned with following relationships with type `LINK`, and will otherwise traverse any node along the way.
84+
There is no arrowhead `<` or `>` on the relationship pattern, allowing the pattern to match relationships going in either direction.
85+
This represents the fact that trains can go in both directions along the `LINK` relationships between Stations.
86+
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].
8387

8488
.Result
8589
[role="queryresult",options="header,footer",cols="m"]

0 commit comments

Comments
 (0)