Create the Book Graph

Learn how to create and query the reference book graph using Gremlin.

We'll cover the following

We’ll now query over the book graph we’ve been using as our reference graph. We want to see how we can query over this using Gremlin and how that differs from the other query languages.

Book graph in Gremlin

We can simply create our book graph in Gremlin using the addVertex and addEdge steps on our graph instance and listing out the properties on both nodes and edges:

Get hands-on with 1200+ tech skills courses.