@@ -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)
479479CALL 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})
485485YIELD nodes, rels
486486RETURN nodes, rels;
@@ -524,8 +524,8 @@ MATCH (w:Wolf), (d:Dog), (c:Cat), (m:Mouse), (h:Human)
524524CALL path.subgraph_all(d, {
525525 relationshipFilter: ["<"],
526526 labelFilter: ["-Human"],
527- minLevel : 0,
528- maxLevel : 4
527+ minHops : 0,
528+ maxHops : 4
529529})
530530YIELD nodes, rels
531531RETURN 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)
673673CALL 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})
679679YIELD nodes
680680RETURN nodes;
@@ -719,8 +719,8 @@ MATCH (w:Wolf), (d:Dog), (c:Cat), (m:Mouse), (h:Human)
719719CALL path.subgraph_nodes(d, {
720720 relationshipFilter: ["<"],
721721 labelFilter: ["-Human"],
722- minLevel : 0,
723- maxLevel : 4
722+ minHops : 0,
723+ maxHops : 4
724724})
725725YIELD nodes
726726RETURN nodes
@@ -753,4 +753,4 @@ that depend on the internal database `id` values.
753753 | "type": "node" |
754754 | } |
755755 +----------------------------+
756- ```
756+ ```
0 commit comments