Model a Book Graph

Create a reference book graph that we'll represent in various graph models.

We'll cover the following

Book graph

We’ll explore some different graph models, 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 bibliographic details for one book: Adopting Elixir by Ben Marx, José Valim, and Bruce Tate.

The reason for this simple exercise is just to get some familiarity with a few basic semantic elements and to see later how these can be represented in the different graph models that we’ll encounter. We’ll need to define some nodes and some edges for this graph. We can visualize the book graph as in the figure below.

Get hands-on with 1400+ tech skills courses.