Skip to content

Commit 5822372

Browse files
fix quantifier link
1 parent e0efb32 commit 5822372

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/ROOT/pages/patterns/match-modes.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ As the results show, a node may be traversed several times in the same path, but
8181
|===
8282

8383
In the next example, the direction is removed from the pattern, and the path length is increased to `6`.
84-
It shows that there are 48 valid paths with this length, where no relationships (bridges) are re-traversed, and the query returns one of those paths as a `samplePath`, showing both the nodes and relationships traversed therein.
84+
It shows that there are `48` valid paths with this length, where no relationships (bridges) are re-traversed, and the query returns one of those paths as a `samplePath`, showing both the nodes and relationships traversed therein.
8585

8686
.Find paths with a length of 6 relationships from a start node
8787
[source, cypher]
@@ -233,7 +233,7 @@ RETURN count(p) AS pathCount
233233

234234
If the path length is increased to exactly `10`, a total of `5580` paths are returned, `11` hops returns `54144` paths, `12` hops returns `229824` paths, and so on, without limit.
235235

236-
To ensure that a `MATCH` will return a finite number of solutions in a finite amount of time, xref:patterns/reference.adoc#quantifiers-rules#quantifiers-rules[unbounded quantifiers] that do not impose an upper bound on a pattern, such as `*`, `+`, or `{1,}` are not allowed in combination with `REPEATABLE ELEMENTS`.
236+
To ensure that a `MATCH` will return a finite number of solutions in a finite amount of time, xref:patterns/reference.adoc#quantifiers-rules[unbounded quantifiers] that do not impose an upper bound on a pattern, such as `*`, `+`, or `{1,}` are not allowed in combination with `REPEATABLE ELEMENTS`.
237237
Also, users should take into account that the number of results returned for a high number of repetitions can significantly impact both memory usage and the speed of the query.
238238

239239
.Not allowed: find paths of an unbounded length using `REPEATABLE ELEMENTS`

modules/ROOT/pages/patterns/reference.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,7 @@ MATCH REPEATABLE ELEMENTS (a)-[r]-(b), (c)-[r]-(d) // r repeated twice
16951695
[[match-modes-rules-quantifier-bounds]]
16961696
==== Quantifier bounds
16971697

1698-
The following applies to the use of variable-length patterns xref:patterns/reference.adoc#quantifiers-rules#quantifiers-rules[quantifiers] in different match modes:
1698+
The following applies to the use of variable-length patterns xref:patterns/reference.adoc#quantifiers-rules[quantifiers] in different match modes:
16991699

17001700
* `DIFFERENT RELATIONSHIPS` does not require an upper bound on a quantifier.
17011701
The following are valid: `+`, `{n, }`, `{ , }`, `*`.

0 commit comments

Comments
 (0)