Graph database
A database that stores nodes and the relationships between them, and follows relationships directly.
Definition
Both nodes and relationships have properties. Queries describe a pattern of nodes and relationships, and each step costs about the same however large the graph is, which makes many-hop questions (friends of friends, fraud rings, permission inheritance) fast. Neo4j with the Cypher language is the best known; ISO GQL is the standard query language.
In practice
MATCH (a:Account)-[:USES]->(d:Device)<-[:USES]-(b:Account) finds accounts that share a device.
Learn it in context
Lessons that use this term.