Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Neo4j

You're reading from  Learning Neo4j

Product type Book
Published in Aug 2014
Publisher
ISBN-13 9781849517164
Pages 222 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Rik Van Bruggen Rik Van Bruggen
Profile icon Rik Van Bruggen

Table of Contents (18) Chapters

Learning Neo4j
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Graphs and Graph Theory – an Introduction 2. Graph Databases – Overview 3. Getting Started with Neo4j 4. Modeling Data for Neo4j 5. Importing Data into Neo4j 6. Use Case Example – Recommendations 7. Use Case Example – Impact Analysis and Simulation 8. Visualizations for Neo4j 9. Other Tools Related to Neo4j Where to Find More Information Related to Neo4j Getting Started with Cypher Index

A graph model – a simple, high-fidelity model of reality


Let's take a quick look at how we can avoid the complexity mentioned previously in the graph world. In the following figure, you will find the graph model and the relational model side by side:

The relational model versus the graph model

On the right-hand side of the image, you will see the three tables in the relational model:

  • A customers table with a number of customer records

  • An Accounts table with a number of accounts of these customers

  • A typical join table that links customers to accounts

What is important here is the implication of this construction: every single time we want to find the accounts of a customer, we need to perform the following:

  1. Look up the customer by their key in the customer table.

  2. Join the customer using this key to their accounts.

  3. Look up the customer's accounts in the accounts table using the account keys that we found in the previous step.

Contrast this with the left-hand side of the figure, and you will see that...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}