Skip to Main Content
Exploring Graphs with Elixir
book

Exploring Graphs with Elixir

by Tony Hammond
November 2022
Intermediate to advanced content levelIntermediate to advanced
294 pages
5h 58m
English
Pragmatic Bookshelf
Content preview from Exploring Graphs with Elixir

Modeling the Book Graph

We’re going to implement our book graph using the property graph model. First, let’s remind ourselves what this book graph looks like—take a look at this figure, which shows our reference book graph.

This book graph can be mapped into the property graph model as shown in the following figure. As you can see, it maps almost exactly.

images/book-property2-books1.png

Yes, that’s right. It looks like the property graph model has full support for all the features we require.

We can express this book graph in Cypher as:

 // book 1
 CREATE
 (bk1:Book {
  id: "adopting_elixir",
  date: "2018-03-14",
  format: "Paper",
  isbn: "978-1-68050-252-7",
  title: "Adopting ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Concurrent Data Processing in Elixir

Concurrent Data Processing in Elixir

Svilen Gospodinov

Publisher Resources

ISBN: 9798888650059Errata Page