SlideShare a Scribd company logo
Graph Database & Neo4j
Created By: Sandip Jadhav
Puzzle
Traces through all the edges of a graph without lifting one’s pencil
and without retracing any edge more than once
1. 2. 3.
4. 5. 6.
© 2013 TomTom. All rights reserved. Confidential information.2
Euler path
• An Euler path is a path that uses every edge of a
graph exactly once.
• Seven Bridges of Königsberg is a historically
notable problem in mathematics
• Theorem: An Eulerian trail exists in a connected
graph if and only if there are either no odd vertices
or two odd vertices.
© 2013 TomTom. All rights reserved. Confidential information.3
NOSQL
© 2013 TomTom. All rights reserved. Confidential information.4
Four NOSQL Categories
• Key-value stores
• Based On Amazon’s Dynamo Paper
• Data model : (global) collection of K-V pairs
• Example : Riak, Voldemort, Redis
• Column-Family
• Based on Google’s BigTable paper
• Data Model: big table, column families
• Example : Hbase, Hypertable, Cassandra
© 2013 TomTom. All rights reserved. Confidential information.5
Four NOSQL Categories
• Document Databases
• Inspired by Lotus Notes
• Data model : collection of K-V Collection
• Example : CouchDB, MongoDB
• Graph Databases
• Inspired by Euler & graph theory
• Data Model: nodes, relationship
• Example : AllegroGraph,Sones,Neo4j
© 2013 TomTom. All rights reserved. Confidential information.6
© 2013 TomTom. All rights reserved. Confidential information.7
Path Puzzles
© 2013 TomTom. All rights reserved. Confidential information.8
Mumbai Local Map
Graph to represent simple map
© 2013 TomTom. All rights reserved. Confidential information.9
Early Adopters of Graph Tech
Facebook Social Graph
© 2013 TomTom. All rights reserved. Confidential information.10
Early Adopters of Graph Tech
Google internet graph ( Page Rank ) & Knowledge Graph
© 2013 TomTom. All rights reserved. Confidential information.11
Google Knowledge Graph
© 2013 TomTom. All rights reserved. Confidential information.12
Graph Database
& Neo4j Intro
© 2013 TomTom. All rights reserved. Confidential information.13
Graph are Whiteboard friendly
© 2013 TomTom. All rights reserved. Confidential information.14
Top Reasons choose Graph database
15
• Problems with Join performance.
• Continuously evolving data set (often
involves wide and sparse tables)
• The Shape of Domain is naturally a
graph
• Open-ended business requirements
necessitating fast, iterative
development.
© 2013 TomTom. All rights reserved. Confidential information.
Graph Databases are Designed to:
• Highly connected data (social networks)
• Make sense of that data
• Recommendations (e-commerce)
• Path Finding (how do I know you?)
• A* (Least Cost path)
Data First Schema (bottom-up, but you still need to
design)
© 2013 TomTom. All rights reserved. Confidential information.16
Emerging Domains to use Graph DB
17 © 2013 TomTom. All rights reserved. Confidential information.
Neo4j
© 2013 TomTom. All rights reserved. Confidential information.18
Graph Db (Neo4j) Performance
© 2013 TomTom. All rights reserved. Confidential information.19
The Neo4J Secrete Sauce
© 2013 TomTom. All rights reserved. Confidential information.20
Neo4j Example : Matrix Movie
21 © 2013 TomTom. All rights reserved. Confidential information.
Create node & relationship
© 2013 TomTom. All rights reserved. Confidential information.22
Transaction
© 2013 TomTom. All rights reserved. Confidential information.23
Define Relationship
© 2013 TomTom. All rights reserved. Confidential information.24
Travels Graph
© 2013 TomTom. All rights reserved. Confidential information.25
Result of Travelasal
© 2013 TomTom. All rights reserved. Confidential information.26
Neo4J Logical architecture
© 2013 TomTom. All rights reserved. Confidential information.27
Query language : Cypher
© 2013 TomTom. All rights reserved. Confidential information.28
Query language : Cypher
© 2013 TomTom. All rights reserved. Confidential information.29
Query language : Gremlin
© 2013 TomTom. All rights reserved. Confidential information.30
• Graph travels language
• DSL (Groovy based)
http://console.neo4j.org/
© 2013 TomTom. All rights reserved. Confidential information.31
References
• http://martinfowler.com/bliki/PolyglotPersistence.html
• http://neo4j.com
© 2013 TomTom. All rights reserved. Confidential information.32
Thank you
Any questions?

More Related Content

PPTX
NoSQL Graph Databases - Why, When and Where
ODP
Graph databases
PDF
Graph based data models
PDF
Intro to Graphs and Neo4j
PDF
Getting started with Graph Databases & Neo4j
PDF
Challenges in the Design of a Graph Database Benchmark
PDF
Neo4j in Depth
PDF
How Graph Databases efficiently store, manage and query connected data at s...
NoSQL Graph Databases - Why, When and Where
Graph databases
Graph based data models
Intro to Graphs and Neo4j
Getting started with Graph Databases & Neo4j
Challenges in the Design of a Graph Database Benchmark
Neo4j in Depth
How Graph Databases efficiently store, manage and query connected data at s...

What's hot (20)

PPTX
Intro to Neo4j with Ruby
PDF
Introducing Neo4j
PPTX
The openCypher Project - An Open Graph Query Language
PPTX
Introduction to Graph Databases
PDF
Introduction to Graph databases and Neo4j (by Stefan Armbruster)
PPTX
Introducing Neo4j graph database
PPTX
Introduction: Relational to Graphs
PDF
Neo4j GraphDay Seattle- Sept19- neo4j basic training
PDF
Intro to Neo4j and Graph Databases
PPT
Benchmarking graph databases on the problem of community detection
PDF
Einführung in Neo4j
PPT
Graph db
PDF
An Introduction to Graph: Database, Analytics, and Cloud Services
PDF
Data Modeling with Neo4j
PDF
Data Modeling with Neo4j
PDF
Hadoop and Neo4j: A Winning Combination for Bioinformatics
PDF
Graph Databases, The Web of Data Storage Engines
PPT
An Introduction to Graph Databases
PPTX
A whirlwind tour of graph databases
PDF
Introducing Neo4j 3.0
Intro to Neo4j with Ruby
Introducing Neo4j
The openCypher Project - An Open Graph Query Language
Introduction to Graph Databases
Introduction to Graph databases and Neo4j (by Stefan Armbruster)
Introducing Neo4j graph database
Introduction: Relational to Graphs
Neo4j GraphDay Seattle- Sept19- neo4j basic training
Intro to Neo4j and Graph Databases
Benchmarking graph databases on the problem of community detection
Einführung in Neo4j
Graph db
An Introduction to Graph: Database, Analytics, and Cloud Services
Data Modeling with Neo4j
Data Modeling with Neo4j
Hadoop and Neo4j: A Winning Combination for Bioinformatics
Graph Databases, The Web of Data Storage Engines
An Introduction to Graph Databases
A whirlwind tour of graph databases
Introducing Neo4j 3.0
Ad

Similar to Graph database & neo4j (20)

PDF
Intro to Graphs for Fedict
PPTX
Graph Databases
PDF
Neo4j GraphTalk Helsinki - Introduction and Graph Use Cases
PPTX
Graph Databases
PDF
Neo4j GraphTalks Oslo - Introduction to Graphs
PDF
Keynote: GraphTour Toronto
PDF
Training Series - Intro to Neo4j
PDF
Graph database
PDF
GraphSummit Toronto: Keynote - Innovating with Graphs
PDF
Big Data Tel Aviv 2019 v.3.0 I 'Graph database 4 beginners' - Michael Kogan
PPTX
Graphs fun vjug2
PDF
Introduction to Neo4j
PDF
RDBMS to Graphs
PDF
5.17 - IntroductionToNeo4j-allSlides_1_2022_DanMc.pdf
PDF
The Connected Data Imperative: The Shifting Enterprise Data Story
PDF
Training di Base Neo4j
PDF
managing big data
PDF
Keynote GraphTour Europe 2019, Emil Eifrem, CEO & Co-Founder Neo4j
PPTX
Neo4j Training Introduction
PPTX
Intro to Graph Theory
Intro to Graphs for Fedict
Graph Databases
Neo4j GraphTalk Helsinki - Introduction and Graph Use Cases
Graph Databases
Neo4j GraphTalks Oslo - Introduction to Graphs
Keynote: GraphTour Toronto
Training Series - Intro to Neo4j
Graph database
GraphSummit Toronto: Keynote - Innovating with Graphs
Big Data Tel Aviv 2019 v.3.0 I 'Graph database 4 beginners' - Michael Kogan
Graphs fun vjug2
Introduction to Neo4j
RDBMS to Graphs
5.17 - IntroductionToNeo4j-allSlides_1_2022_DanMc.pdf
The Connected Data Imperative: The Shifting Enterprise Data Story
Training di Base Neo4j
managing big data
Keynote GraphTour Europe 2019, Emil Eifrem, CEO & Co-Founder Neo4j
Neo4j Training Introduction
Intro to Graph Theory
Ad

Recently uploaded (20)

PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Encapsulation theory and applications.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Spectroscopy.pptx food analysis technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Encapsulation_ Review paper, used for researhc scholars
Advanced methodologies resolving dimensionality complications for autism neur...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Encapsulation theory and applications.pdf
Empathic Computing: Creating Shared Understanding
The Rise and Fall of 3GPP – Time for a Sabbatical?
NewMind AI Weekly Chronicles - August'25 Week I
Unlocking AI with Model Context Protocol (MCP)
“AI and Expert System Decision Support & Business Intelligence Systems”
Per capita expenditure prediction using model stacking based on satellite ima...
MYSQL Presentation for SQL database connectivity
Spectroscopy.pptx food analysis technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Machine learning based COVID-19 study performance prediction
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

Graph database & neo4j

  • 1. Graph Database & Neo4j Created By: Sandip Jadhav
  • 2. Puzzle Traces through all the edges of a graph without lifting one’s pencil and without retracing any edge more than once 1. 2. 3. 4. 5. 6. © 2013 TomTom. All rights reserved. Confidential information.2
  • 3. Euler path • An Euler path is a path that uses every edge of a graph exactly once. • Seven Bridges of Königsberg is a historically notable problem in mathematics • Theorem: An Eulerian trail exists in a connected graph if and only if there are either no odd vertices or two odd vertices. © 2013 TomTom. All rights reserved. Confidential information.3
  • 4. NOSQL © 2013 TomTom. All rights reserved. Confidential information.4
  • 5. Four NOSQL Categories • Key-value stores • Based On Amazon’s Dynamo Paper • Data model : (global) collection of K-V pairs • Example : Riak, Voldemort, Redis • Column-Family • Based on Google’s BigTable paper • Data Model: big table, column families • Example : Hbase, Hypertable, Cassandra © 2013 TomTom. All rights reserved. Confidential information.5
  • 6. Four NOSQL Categories • Document Databases • Inspired by Lotus Notes • Data model : collection of K-V Collection • Example : CouchDB, MongoDB • Graph Databases • Inspired by Euler & graph theory • Data Model: nodes, relationship • Example : AllegroGraph,Sones,Neo4j © 2013 TomTom. All rights reserved. Confidential information.6
  • 7. © 2013 TomTom. All rights reserved. Confidential information.7
  • 8. Path Puzzles © 2013 TomTom. All rights reserved. Confidential information.8
  • 9. Mumbai Local Map Graph to represent simple map © 2013 TomTom. All rights reserved. Confidential information.9
  • 10. Early Adopters of Graph Tech Facebook Social Graph © 2013 TomTom. All rights reserved. Confidential information.10
  • 11. Early Adopters of Graph Tech Google internet graph ( Page Rank ) & Knowledge Graph © 2013 TomTom. All rights reserved. Confidential information.11 Google Knowledge Graph
  • 12. © 2013 TomTom. All rights reserved. Confidential information.12 Graph Database & Neo4j Intro
  • 13. © 2013 TomTom. All rights reserved. Confidential information.13
  • 14. Graph are Whiteboard friendly © 2013 TomTom. All rights reserved. Confidential information.14
  • 15. Top Reasons choose Graph database 15 • Problems with Join performance. • Continuously evolving data set (often involves wide and sparse tables) • The Shape of Domain is naturally a graph • Open-ended business requirements necessitating fast, iterative development. © 2013 TomTom. All rights reserved. Confidential information.
  • 16. Graph Databases are Designed to: • Highly connected data (social networks) • Make sense of that data • Recommendations (e-commerce) • Path Finding (how do I know you?) • A* (Least Cost path) Data First Schema (bottom-up, but you still need to design) © 2013 TomTom. All rights reserved. Confidential information.16
  • 17. Emerging Domains to use Graph DB 17 © 2013 TomTom. All rights reserved. Confidential information.
  • 18. Neo4j © 2013 TomTom. All rights reserved. Confidential information.18
  • 19. Graph Db (Neo4j) Performance © 2013 TomTom. All rights reserved. Confidential information.19
  • 20. The Neo4J Secrete Sauce © 2013 TomTom. All rights reserved. Confidential information.20
  • 21. Neo4j Example : Matrix Movie 21 © 2013 TomTom. All rights reserved. Confidential information.
  • 22. Create node & relationship © 2013 TomTom. All rights reserved. Confidential information.22
  • 23. Transaction © 2013 TomTom. All rights reserved. Confidential information.23
  • 24. Define Relationship © 2013 TomTom. All rights reserved. Confidential information.24
  • 25. Travels Graph © 2013 TomTom. All rights reserved. Confidential information.25
  • 26. Result of Travelasal © 2013 TomTom. All rights reserved. Confidential information.26
  • 27. Neo4J Logical architecture © 2013 TomTom. All rights reserved. Confidential information.27
  • 28. Query language : Cypher © 2013 TomTom. All rights reserved. Confidential information.28
  • 29. Query language : Cypher © 2013 TomTom. All rights reserved. Confidential information.29
  • 30. Query language : Gremlin © 2013 TomTom. All rights reserved. Confidential information.30 • Graph travels language • DSL (Groovy based)
  • 31. http://console.neo4j.org/ © 2013 TomTom. All rights reserved. Confidential information.31

Editor's Notes

  • #6: Data Model ColumnFamily:  ColumnFamily is a single structure that can group Columns and SuperColumns with ease. Key: the permanent name of the record. Keys have different numbers of columns, so the database can scale in an irregular way. Keyspace:  This defines the outermost level of an organization, typically the name of the application. For example, ‘3PillarDataBase’ (database name). Column:  It has an ordered list of elements aka tuple with a name and a value defined. In comparison, most relational DBMS store data in rows, the benefit of storing data in columns, is fast search/ access and data aggregation
  • #8:  polyglot persistence will come at a cost - but it will come because the benefits are worth it.
  • #19: A Graph Database + Lucene Index Property Graph Full ACID (atomicity, consistency, isolation, durability) High Availability (with Enterprise Edition) 32 Billion Nodes, 32 Billion Relationships, 64 Billion Properties Embedded Server REST API