Path pattern
A path pattern matches a «path» through vertices and edges.
( … ) | Parantheses match a vertex |
[ … ] | Square brackets match an edge |
The elements of the path patterns are not required to alternate between vertices and edges.
The following semantics apply:
- Two consecutive vertex patterns are only allowed if one of the vertex patterns is contained in a parenthesized path pattern while the other one is not. In this case, the vertex patterns bind to the same vertex.
- Two consecutive edge patterns conceptually have an implicit vertex pattern between them.