A brief introduction to graph databases

A graph is a network of objects (vertices) with directed connections (edges) between them. The following diagram illustrates a simple social graph similar to what one might find on Twitter:

A brief introduction to graph databases

In this example, users are represented by vertices (nodes), and relationships are expressed as edges (connection). Note that the edges in the graph are directed, allowing an additional degree of expressiveness. This allows, for example, to express the fact that Bob and Alice follow one another, and Alice follows Ted but Ted does not follow Alice. This relationship would be more cumbersome to model without directed edges. ...

Get Storm Blueprints: Patterns for Distributed Real-time Computation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.