@@ -371,8 +371,8 @@ procedure uses bfs.
371
371
372
372
| Name | Type | Default | Description |
373
373
| - | - | - | - |
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. |
376
376
| relationshipFilter | List | [ ] | List of relationships which the subgraph formation will follow. Relationships
377
377
can be filtered using the notation described below. |
378
378
| 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)
479
479
CALL path.subgraph_all(d, {
480
480
relationshipFilter: ["CATCHES>","<HATES"],
481
481
labelFilter: [">Mouse", ">Human"],
482
- minLevel : 0,
483
- maxLevel : 4
482
+ minHops : 0,
483
+ maxHops : 4
484
484
})
485
485
YIELD nodes, rels
486
486
RETURN nodes, rels;
@@ -524,8 +524,8 @@ MATCH (w:Wolf), (d:Dog), (c:Cat), (m:Mouse), (h:Human)
524
524
CALL path.subgraph_all(d, {
525
525
relationshipFilter: ["<"],
526
526
labelFilter: ["-Human"],
527
- minLevel : 0,
528
- maxLevel : 4
527
+ minHops : 0,
528
+ maxHops : 4
529
529
})
530
530
YIELD nodes, rels
531
531
RETURN nodes, rels;
@@ -573,8 +573,8 @@ relationship and label filters, and ensures each node is visited only once.
573
573
574
574
| Name | Type | Default | Description |
575
575
| - | - | - | - |
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. |
578
578
| relationshipFilter | List | [ ] | List of relationships which the subgraph formation will follow. Explained in detail below. |
579
579
| labelFilter | List | [ ] | List of labels which will define filtering. Explained in detail below. |
580
580
| 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)
673
673
CALL path.subgraph_nodes(d, {
674
674
relationshipFilter: ["CATCHES>","<HATES"],
675
675
labelFilter: [">Mouse", ">Human"],
676
- minLevel : 0,
677
- maxLevel : 4
676
+ minHops : 0,
677
+ maxHops : 4
678
678
})
679
679
YIELD nodes
680
680
RETURN nodes;
@@ -719,8 +719,8 @@ MATCH (w:Wolf), (d:Dog), (c:Cat), (m:Mouse), (h:Human)
719
719
CALL path.subgraph_nodes(d, {
720
720
relationshipFilter: ["<"],
721
721
labelFilter: ["-Human"],
722
- minLevel : 0,
723
- maxLevel : 4
722
+ minHops : 0,
723
+ maxHops : 4
724
724
})
725
725
YIELD nodes
726
726
RETURN nodes
@@ -753,4 +753,4 @@ that depend on the internal database `id` values.
753
753
| "type": "node" |
754
754
| } |
755
755
+----------------------------+
756
- ```
756
+ ```
0 commit comments