pattern
A graph structure written in Cypher, such as a node joined to another node by a relationship.
Also written: patterns
Example
A pattern three nodes wide.
cypher
MATCH path = (a:Person)-[:ACTED_IN]->(:Movie)<-[:DIRECTED]-(d:Person)
RETURN pathThe pattern is (a:Person)-[:ACTED_IN]->(:Movie)<-[:DIRECTED]-(d:Person). Two (:Person) nodes and one (:Movie), joined by an [:ACTED_IN] relationship and a [:DIRECTED] one, each drawn pointing the way it runs. The same pattern can be written into MERGE or CREATE as readily as into MATCH.
Lessons that use this term
The lesson and course links below open in a new tab.
No published lesson uses this term yet.