Path Expander Overview
The Cypher query language supports variable-length pattern matching, but path expansion is limited to relationship types. The path expander procedures enable more powerful variable length path traversals, where users can specify the following:
-
the direction of the relationship per relationship type.
-
a list of label names which act as a "whitelist" or a "blacklist".
-
end nodes for the expansion.
This functionality is supported by five procedures:
Procedure | Description | Documentation |
---|---|---|
|
expands paths using Cypher’s default expansion modes (bfs and 'RELATIONSHIP_PATH' uniqueness). |
|
|
expands paths with more flexible configuration of parameters and expansion modes. |
|
|
expands to nodes of a subgraph. |
|
|
expands to nodes of a subgraph and also returns all relationships in the subgraph. |
|
|
expands to paths collectively forming a spanning tree. |