Modeling a Book Graph

We’re going to explore different graph models in this book, so it might be handy to have a reference graph that we can use to gauge how each model behaves. Let’s do that by creating a simple graph for a book catalog.

We’ll start by populating our book graph with one book:

This simple exercise is meant to familiarize you with some basic semantic elements and later show you how these elements can be represented in the different graph models we’ll encounter.

We can visualize our book graph in the following figure.

images/book-intro-books1-simple.png

This is a diagrammatic representation. We’ll ...

Get Exploring Graphs with Elixir 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.