Skip to content

Commit 829189d

Browse files
thomas-tran-deimilinovickatarinasupe
authored
Fix parameter names for path functions (#993)
Replace minLevel/maxLevel by minHops/maxHops Co-authored-by: Ivan Milinović <44698587+imilinovic@users.noreply.github.com> Co-authored-by: Katarina Supe <61758502+katarinasupe@users.noreply.github.com>
1 parent 2a27813 commit 829189d

File tree

1 file changed

+13
-13
lines changed
  • pages/advanced-algorithms/available-algorithms

1 file changed

+13
-13
lines changed

pages/advanced-algorithms/available-algorithms/path.mdx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ procedure uses bfs.
371371

372372
| Name | Type | Default | Description |
373373
|- |- |- |- |
374-
| minLevel | Int | 0 | The minimum number of hops in the traversal. Set to `0` if the start node should be included in the subgraph, or `1` otherwise. |
375-
| maxLevel | Int | -1 | The maximum number of hops in the traversal. |
374+
| minHops | Int | 0 | The minimum number of hops in the traversal. Set to `0` if the start node should be included in the subgraph, or `1` otherwise. |
375+
| maxHops | Int | -1 | The maximum number of hops in the traversal. |
376376
| relationshipFilter | List | [ ] | List of relationships which the subgraph formation will follow. Relationships
377377
can be filtered using the notation described below. |
378378
| labelFilter | List | [ ] | List of labels which will define filtering. Labels
@@ -479,8 +479,8 @@ MATCH (w:Wolf), (d:Dog), (c:Cat), (m:Mouse), (h:Human)
479479
CALL path.subgraph_all(d, {
480480
relationshipFilter: ["CATCHES>","<HATES"],
481481
labelFilter: [">Mouse", ">Human"],
482-
minLevel: 0,
483-
maxLevel: 4
482+
minHops: 0,
483+
maxHops: 4
484484
})
485485
YIELD nodes, rels
486486
RETURN nodes, rels;
@@ -524,8 +524,8 @@ MATCH (w:Wolf), (d:Dog), (c:Cat), (m:Mouse), (h:Human)
524524
CALL path.subgraph_all(d, {
525525
relationshipFilter: ["<"],
526526
labelFilter: ["-Human"],
527-
minLevel: 0,
528-
maxLevel: 4
527+
minHops: 0,
528+
maxHops: 4
529529
})
530530
YIELD nodes, rels
531531
RETURN nodes, rels;
@@ -573,8 +573,8 @@ relationship and label filters, and ensures each node is visited only once.
573573

574574
| Name | Type | Default | Description |
575575
|- |- |- |- |
576-
| minLevel | Int | 0 | The minimum number of hops in the traversal. Set to `0` if the start node should be included in the subgraph, or `1` otherwise. |
577-
| maxLevel | Int | -1 | The maximum number of hops in the traversal. |
576+
| minHops | Int | 0 | The minimum number of hops in the traversal. Set to `0` if the start node should be included in the subgraph, or `1` otherwise. |
577+
| maxHops | Int | -1 | The maximum number of hops in the traversal. |
578578
| relationshipFilter | List | [ ] | List of relationships which the subgraph formation will follow. Explained in detail below. |
579579
| labelFilter | List | [ ] | List of labels which will define filtering. Explained in detail below. |
580580
| filterStartNode | Bool | False | Whether the labelFilter applies to the start nodes. |
@@ -673,8 +673,8 @@ MATCH (w:Wolf), (d:Dog), (c:Cat), (m:Mouse), (h:Human)
673673
CALL path.subgraph_nodes(d, {
674674
relationshipFilter: ["CATCHES>","<HATES"],
675675
labelFilter: [">Mouse", ">Human"],
676-
minLevel: 0,
677-
maxLevel: 4
676+
minHops: 0,
677+
maxHops: 4
678678
})
679679
YIELD nodes
680680
RETURN nodes;
@@ -719,8 +719,8 @@ MATCH (w:Wolf), (d:Dog), (c:Cat), (m:Mouse), (h:Human)
719719
CALL path.subgraph_nodes(d, {
720720
relationshipFilter: ["<"],
721721
labelFilter: ["-Human"],
722-
minLevel: 0,
723-
maxLevel: 4
722+
minHops: 0,
723+
maxHops: 4
724724
})
725725
YIELD nodes
726726
RETURN nodes
@@ -753,4 +753,4 @@ that depend on the internal database `id` values.
753753
| "type": "node" |
754754
| } |
755755
+----------------------------+
756-
```
756+
```

0 commit comments

Comments
 (0)