SlideShare a Scribd company logo
1 of 73
Download to read offline
Neo4j, Inc. All rights reserved 2021
Neo4j, Inc. All rights reserved 2021
1
What Graph Technology can do
with your Data…
GDS Workshop Tel Aviv
Kristof Neys,
Graph Data Science Specialist - Field Engineering EMEA/APAC
Jul 2022
Neo4j, Inc. All rights reserved 2021
2
Graph Data Science Workshop
● Get your Neo4j Engine up & running and register at:
https://neo4j.com/sandbox/
● Get the script to code (copy) along:
https://github.com/Kristof-Neys/Neo4j_demos
Neo4j, Inc. All rights reserved 2021
3
We will cover…
1. Knowledge Graphs
2. Why Graph Data Science
3. Neo4j Graph Data Science
4. Algo in Action
5. Graph Embeddings
6. Graph Machine Learning
7. Access & Integration
8. Use cases
9. Demo Time!
Neo4j, Inc. All rights reserved 2021
4
It’s all about Knowledge Graphs
Neo4j, Inc. All rights reserved 2021
5
Driving Intelligence into Data with Knowledge Graphs
Data Graph
Dynamic Context
Knowledge Graph
Deep Dynamic Context
Neo4j, Inc. All rights reserved 2021
6
From Data points to Knowledge Graph
Car
D
RIVES
name: “Dan”
born: May 29, 1978
twitter: “@dan”
name: “Ann”
born: Dec 5, 1979
since:
Jan 10,
2021
brand: “Volvo”
model: “V90”
LOVES
LOVES
LIVES_WITH
O
W
N
S
Person Person
Neo4j, Inc. All rights reserved 2021
User
:VISITED
Website
User
IPLocation
Website
IPLocation
Website
Website
Website
:VISITED
:VISITED
:VISITED
:USED
:USED
:
U
S
E
D
:
V
I
S
I
T
E
D
:
V
I
S
I
T
E
D
:VISITED
:SAME_AS
Graphs allows you to make implicit
relationships….
….explicit
Graphs….Grow!
Neo4j, Inc. All rights reserved 2021
:SAME_AS
User
:VISITED
Website
User
IPLocation
Website
IPLocation
Website
Website
Website
:VISITED
:VISITED
:VISITED
:USED
:USED
:
U
S
E
D
:
V
I
S
I
T
E
D
:
V
I
S
I
T
E
D
:VISITED
User
:SAM
E_AS
:USED
:VISITED
PersonId: 1
PersonId: 1 PersonId: 1
User
PersonId: 2
:VISITED
…and can then group similar nodes…and
create a new graph from the explicit
relationships…
A graph grows organically - gaining
insights and enriching your data
Graphs….Grow!
Neo4j, Inc. All rights reserved 2021
Connectedness and Size of Data Set
Response
Time
Relational and
Other NoSQL
Databases
0 to 2 hops
0 to 3 degrees of separation
Thousands of connections
Tens to hundreds of hops
Thousands of degrees
Billions of connections
1000x Advantage
at scale
“Minutes to milliseconds”
1000x Performance @Unlimited Scale
Neo4j, Inc. All rights reserved 2021
10
Knowledge graphs in Credit risk analysis
Neo4j, Inc. All rights reserved 2021
11
We eat, sleep, drink..
Knowledge
Graphs…
And..
…We even
published a book-let
on it….get your free
copy.
Neo4j, Inc. All rights reserved 2021
12
Why Graph Data Science?
Neo4j, Inc. All rights reserved 2021
Where Deepmind goes...
“We argue that combinatorial
generalisation must be a top
priority for AI to achieve
human-like abilities, and that
structured representations [i.e.
Graphs] and computations are
key to realizing this objective”
Neo4j, Inc. All rights reserved 2021
Everything is a Graph...
Neo4j, Inc. All rights reserved 2021
Graph Neural Networks are HOT!
Neo4j, Inc. All rights reserved 2021
And Industry is picking it up too….
Neo4j, Inc. All rights reserved 2021
17
Why & how Neo4j Graph Data Science?
Neo4j, Inc. All rights reserved 2021
Neo4j’s Graph Data Science Framework
Neo4j Graph Data
Science Library
Neo4j
Database
Neo4j
Bloom
Scalable Graph Algorithms &
Analytics Workspace
Native Graph Creation &
Persistence
Visual Graph
Exploration & Prototyping
Neo4j, Inc. All rights reserved 2021
19
Graphs & Data Science
Knowledge Graphs
Graph Algorithms
Graph Native
Machine Learning
Find the patterns you’re
looking for in connected data
Use unsupervised machine
learning techniques to
identify associations,
anomalies, and trends.
Use embeddings to learn the
features in your graph that
you don’t even know are
important yet.
Train in-graph supervised ML
models to predict links,
labels, and missing data.
Neo4j, Inc. All rights reserved 2021
20
60+ Graph Data Science Techniques in Neo4j
Pathfinding &
Search
• Shortest Path
• Single-Source Shortest Path
• All Pairs Shortest Path
• A* Shortest Path
• Yen’s K Shortest Path
• Minimum Weight Spanning Tree
• K-Spanning Tree (MST)
• Random Walk
• Breadth & Depth First Search
Centrality &
Importance
• Degree Centrality
• Closeness Centrality
• Harmonic Centrality
• Betweenness Centrality & Approx.
• PageRank
• Personalized PageRank
• ArticleRank
• Eigenvector Centrality
• Hyperlink Induced Topic Search (HITS)
• Influence Maximization (Greedy, CELF)
Community
Detection
• Triangle Count
• Local Clustering Coefficient
• Connected Components (Union Find)
• Strongly Connected Components
• Label Propagation
• Louvain Modularity
• K-1 Coloring
• Modularity Optimization
• Speaker Listener Label Propagation
Supervised
Machine Learning
• Node Classification
• Link Prediction
… and more!
Heuristic Link
Prediction
• Adamic Adar
• Common Neighbors
• Preferential Attachment
• Resource Allocations
• Same Community
• Total Neighbors
Similarity
• Node Similarity
• K-Nearest Neighbors (KNN)
• Jaccard Similarity
• Cosine Similarity
• Pearson Similarity
• Euclidean Distance
• Approximate Nearest Neighbors (ANN)
Graph
Embeddings
• Node2Vec
• FastRP
• FastRPExtended
• GraphSAGE
• Synthetic Graph Generation
• Scale Properties
• Collapse Paths
• One Hot Encoding
• Split Relationships
• Graph Export
• Pregel API (write your own algos)
Neo4j, Inc. All rights reserved 2021
21
Before we go any further - let’s
Quiz!
Neo4j, Inc. All rights reserved 2021
22
Which is the most important station…?
Neo4j, Inc. All rights reserved 2021
23
Betweenness Centrality (BC)
● The BC score of a node is determined by the number of shortest paths
running through it.
● The more shortest paths that go through a node, the higher the BC score
of that node.
● Betweenness centrality: “information flow”, “connector points”, “bridge”...
○ Estate agents
○ ...
Neo4j, Inc. All rights reserved 2021
Example: Betweenness centrality
The need for speed…
● NetworkX vs Neo4j
● Graph:
○ 42k nodes / 126k edges
● Time to compute….
○ Neo4j: 10 secs
○ NetworkX: 15,284 secs
(that is 4 hours 15min...)
● How??
Multi-Source Breadth-First-Search
Neo4j, Inc. All rights reserved 2021
25
How can they be used?
Stand Alone Solution
Find significant patterns and optimal
structures
Use community detection and
similarity scores for recommendations
Machine Learning Pipeline
Use the measures as features to train
an ML model
1st
node
2nd
node
Common
neighbors
Preferential
attachment
Label
1 2 4 15 1
3 4 7 12 1
5 6 1 1 0
25
Neo4j, Inc. All rights reserved 2021
26
Graph Projection
- Focus time…
Neo4j, Inc. All rights reserved 2021
27
Monopartite graph
● is a single set of nodes that are interconnected
● is what you need for the majority of the graph algorithms
Neo4j, Inc. All rights reserved 2021
Bipartite graph
● two sets of nodes that are connected but the sets themselves are not
interconnected
● great as input for algorithms (such as node similarity) that are used to
create a monopartite graph
Neo4j, Inc. All rights reserved 2021
The Graph Catalog – from Data Model to Predictive Model
• Neo4j automates data
transformations
• Experiment with different data
sets, data models
• Fast iterations & layering
• Production ready features,
parallelization & enterprise
support
• Ability to persist and version
data
A graph-specific analytics workspace that’s mutable – integrated with a
native-graph database
Mutable In-Memory Workspace
Computational Graph
Native Graph Store
Neo4j, Inc. All rights reserved 2021
30
Our Implementations are Fast - and Getting Faster
LDBC100
(LDBC Social Network Scale Factor 100)
300M+ nodes
2B+ relationships
LDBC100PKP
(LDBC Social Network Scale Factor 100)
500k nodes
46M+ relationships
Logical Cores: 64
Memory: 512GB
Storage: 600GB
NVMe-SSD
AWS EC2 R5D16XLarge
Intel Xeon Platinum 8000
(Skylake-SP or Cascade Lake)
Node Similarity
20min
Betweenness Centrality
10min
Node2Vec
2.8min
Label Propagation
46sec
Weakly Connected
Components
36sec
Local Clustering
Coefficient
4.76min
FastRP
1.33min
PageRank
53sec
Louvain
14.66min
Neo4j, Inc. All rights reserved 2021
Algo in action:
Node Similarity
31
Neo4j, Inc. All rights reserved 2021
32
Node similarity
● The Node similarity algorithm compares a node based on the nodes they
are connected to. That is, two nodes are similar if they share the same
neighbours.
● The algorithm takes in a bipartite, connected graph of two disjoint node
sets, for instance ‘Person’ and ‘Food_Drink’
● The GDS Node similarity function is based on the Jaccard metric. For
two nodes, A and B, we compute
Neo4j, Inc. All rights reserved 2021
Node similarity - suppose...
Neo4j, Inc. All rights reserved 2021
Project the Graph…
CALL gds.graph.project(
'myGraph',
['Person', 'Food_Drink'],
{
LIKES: {
type: 'LIKES' }
}
);
● Food_Drink: Trappist, Sausages, Green_Tea, Vegan_Burger, Frites,
Mussels, Sushi
● Person: Alicia, Stefan, Tom, Kristof
Neo4j, Inc. All rights reserved 2021
Simple call to GDS function…
CALL gds.nodeSimilarity.stream('myGraph')
YIELD node1, node2, similarity
RETURN gds.util.asNode(node1).name AS Person1,
gds.util.asNode(node2).name AS Person2,similarity
ORDER BY similarity DESCENDING, Person1
Neo4j, Inc. All rights reserved 2021
Et Voila...
Neo4j, Inc. All rights reserved 2021
Node similarity
Use Cases:
● Customer classification based on purchases
● Movie recommendations...
● Similarity scores can be stored as a relationship property -> feature
engineering
● ...
Caveats:
● O(n^2)
● Optimize algorithm by limiting the number of computation per node, topK
parameter
Neo4j, Inc. All rights reserved 2021
Graph Embeddings:
From Chaos to Structure…
38
Neo4j, Inc. All rights reserved 2021
Node Embedding
What are node embeddings?
How?
The representation of nodes as low-dimensional vectors that
summarize their graph position, the structure of their local graph
neighborhood as well as any possible node features
Encoder - Decoder Framework
Neo4j, Inc. All rights reserved 2021
Node Embedding
Encode nodes such that similarity in
the embedding space, i.e. cosine
similarity, approximates similarity in
the graph
Neo4j, Inc. All rights reserved 2021
Graph Embeddings in Neo4j
Node2Vec
Random walk based embedding
that can encode structural similarity
or topological proximity.
Easy to understand, interpretable
parameters, plenty of examples
GraphSAGE
Inductive embedding that encodes
properties of neighboring nodes when
learning topology.
Generalizes to unseen graphs, first
method to incorporate properties
FastRP
A super fast linear algebra based
approach to embeddings that can
encode topology or properties.
75,000x faster than Node2Vec
extended to encode properties
Neo4j, Inc. All rights reserved 2021
42
What is the intuition…?
Neo4j, Inc. All rights reserved 2021
Toy example on Embeddings & FastRP
Neo4j, Inc. All rights reserved 2021
Cypher calls
Step 2: Project the Graph:
CALL gds.graph.project(
'persons',
'Person',
{
KNOWS: {
orientation: 'UNDIRECTED'
}
})
Step 3: Write Basic FastRp embeddings:
CALL gds.fastRP.write(
'persons',
{
embeddingDimension: 2,
writeProperty: 'FastRP-embed',
randomSeed: 42
}
)
YIELD nodePropertiesWritten
Neo4j, Inc. All rights reserved 2021
Recall, embeddings are simply vectors...
Neo4j, Inc. All rights reserved 2021
Use Cosine to do a check...
Step 4: Run basic Cosine similarity:
MATCH (p1:Person)
MATCH (p2:Person)
WHERE id(p2) >id(p1)
RETURN p1.name as from, p2.name as to, gds.alpha.similarity.cosine(p1.`FastRP-embed`,
p2.`FastRP-embed`) AS similarity
ORDER BY similarity DESC
Neo4j, Inc. All rights reserved 2021
Et Voila… - top 5
Neo4j, Inc. All rights reserved 2021
Neo4j, Inc. All rights reserved 2021
Et Voila… - bottom 5
Conclusion: As can be seen from the actual graph, ‘Elisa’ and ‘Dan’ are furthest removed from each other, with length of 3,
which is reflected in their embeddings, and hence in the cosine similarity computation. ‘Jeff’, ‘Annie’, ‘Brie’ are near each
other which is reflected in their similarity score.
Neo4j, Inc. All rights reserved 2021
50
Graph Machine Learning
Neo4j, Inc. All rights reserved 2021
51
Node Classification - in Neo4j
Load your in- memory
graph with labels &
features
Use
nodeClassification.train
Specify the property you want to
predict and the features for making
that prediction
Node classification:
Predicting a node label or (categorical) property
Neo4j Automates the Tricky Parts:
1. Splits data for train & test
2. Builds logistic regression models using the training data
& specified parameters to predict the correct label
3. Evaluates the accuracy of the models using the test data
4. Returns the best performing model
The predictive model
appears in the model
catalog, ready
to apply to
new data
Neo4j, Inc. All rights reserved 2021
52
Link Prediction - in Neo4j
Load your in- memory
graph with labels &
features
Use
linkPrediction.train
Split your graph into train & test
splitRelationships.mutate
Link Prediction:
Predicting unobserved edges or relationships that will form in the future
Neo4j Automates the Tricky Parts:
1. Builds logistic regression models using the training data
& specified parameters to predict the correct label
2. Evaluates the accuracy of the models using the test data
3. Returns the best performing model
The predictive model
appears in the model
catalog, ready
to apply to
new data
Neo4j, Inc. All rights reserved 2021
53
Link Prediction
Neo4j, Inc. All rights reserved 2021
54
Link Prediction
Neo4j, Inc. All rights reserved 2021
55
Access & Integration
Neo4j, Inc. All rights reserved 2021
56
Access & deploy GDS
● In addition to the Neo4j Browser, access to the GDS library can be done
using the Neo4j Drivers
Neo4j, Inc. All rights reserved 2021
Neo4j GDS - Pythonic way….
https://github.com/neo4j/graph-data-science-client
Neo4j, Inc. All rights reserved 2021
Integrating Neo4j in production workflow
Neo4j, Inc. All rights reserved 2021
59
One last thing….
It’s better with Transformers...
Neo4j, Inc. All rights reserved 2021
60
Neo4j, Inc. All rights reserved 2021
61
Neo4j, Inc. All rights reserved 2021
Use cases
62
Neo4j, Inc. All rights reserved 2021
63
The Modern Supply Chain is a Graph
Neo4j, Inc. All rights reserved 2021
“
64
Bill of Materials
“We looked at the problem and had a diagram
with circles coming off from lines, and it was a
representation of our graph omen.”
Ann Grubbs
Chief Data Engineer, Lockheed Martin Space
Challenge
Product data housed in various silos
across the organization could not be easily
integrated
Solution
Knowledge graph of components and
parts to build satellites and equipment to
reduce costs and increase efficiency
Why Neo4j
Flexible, Contextual Data Model
Reduce
Costs
Increased
Efficiency
https://go.neo4j.com/rs/710-RRC-335/images/Neo4j-case-study-lockheed-martin-space-EN-US.pdf?_gl=1*1l9aumn*_ga*MTY4Mjc3NzczOS4xNjI4NTYwNzAx*_ga_DL38Q8KGQC*MTY0OTk4MTc4OC40NTMuMC4xNjQ5
jA.&_ga=2.56975401.2084245390.1649785148-1682777739.1628560701&_gac=1.217804388.1646438592.CjwKCAiAjoeRBhAJEiwAYY3nDOfaswGYvytf8zzvFmfYpQ0i2UV4KkD_teIXnZtaeFtcrIuLeI7j8BoCgIwQAvD_Bw
Neo4j, Inc. All rights reserved 2021
65
Neo4j working with Banking Circle to detect Fraud
Neo4j, Inc. All rights reserved 2021
66
● Boston Scientific needed a more
efficient method for finding the root
causes of quality control problems.
● The heart of Boston Scientific’s graph
data model consists of three nodes
representing a finished product, a part
and an issue, with relationships that
trace problems to parts and connect
those to finished products.
● The Boston Scientific team analyzes its
graph and computes scores that rank
nodes based on their proximity to
failures, enriching its models with
insights derived from the graph.
Neo4j, Inc. All rights reserved 2021
67
NASA: A Knowledge Graph to identify trends that can prevent
disasters and incorporate lessons learned into new projects.
Getting to Mars Faster with a Knowledge Graph
David Meza, Chief Knowledge Architect at
NASA: "This has saved us at least
a year and over $2 million in
research and development
toward our Mission to Mars
planning."
Neo4j, Inc. All rights reserved 2021
68
• Challenge: Focus on preventative
maintenance to avoid costly post-failure
remedial actions
• Solution: 27 million warranty & service
documents parsed for text to knowledge
graph that is context for AI to learn “prime
examples” and anticipate maintenance
• Results:
○ Proactive remedial action has
saved downtime & associated
costs and increased productivity
Caterpillar
Preventative Maintenance
Neo4j, Inc. All rights reserved 2021
69
Demo Time…! (but first some
Cypher…)
Neo4j, Inc. All rights reserved 2021
Neo4j, Inc. All rights reserved 2021
Cypher: first we CREATE
70
MATCH (:Person { name:“Dan”} ) -[:LOVES]-> (:Person { name:“Ann”} )
Person
NODE NODE
LABEL PROPERTY
LABEL PROPERTY
CREATE
RELATIONSHIP
name: ‘Ann’
LOVES
Person
name: ‘Dan’
Neo4j, Inc. All rights reserved 2021
Neo4j, Inc. All rights reserved 2021
Cypher: and then we MATCH a pattern in the Graph
71
MARRIED_TO
Person
name: ‘Dan’
MATCH (p:Person { name:“Dan”} ) -[:MARRIED_TO]-> (spouse)
NODE RELATIONSHIP TYPE
LABEL PROPERTY VARIABLE
spouse
NODE
RETURN p, spouse
VARIABLE
Neo4j, Inc. All rights reserved 2021
72
In Cypher you MATCH a pattern and then RETURN a result
MATCH (c:Country {name: "Finland"})
RETURN c;
001
Filtering is done with WHERE (this statement does exactly the same)
MATCH (c:Country)
WHERE c.name = "Finland"
RETURN c;
002
Neo4j, Inc. All rights reserved 2021
Neo4j, Inc. All rights reserved 2021
73
Thank you…,OK, now let’s Demo!

More Related Content

What's hot

Graphs for Finance - AML with Neo4j Graph Data Science
Graphs for Finance - AML with Neo4j Graph Data Science Graphs for Finance - AML with Neo4j Graph Data Science
Graphs for Finance - AML with Neo4j Graph Data Science
Neo4j
 
Knowledge Graphs - The Power of Graph-Based Search
Knowledge Graphs - The Power of Graph-Based SearchKnowledge Graphs - The Power of Graph-Based Search
Knowledge Graphs - The Power of Graph-Based Search
Neo4j
 
The Data Platform for Today’s Intelligent Applications
The Data Platform for Today’s Intelligent ApplicationsThe Data Platform for Today’s Intelligent Applications
The Data Platform for Today’s Intelligent Applications
Neo4j
 

What's hot (20)

Graphs for Finance - AML with Neo4j Graph Data Science
Graphs for Finance - AML with Neo4j Graph Data Science Graphs for Finance - AML with Neo4j Graph Data Science
Graphs for Finance - AML with Neo4j Graph Data Science
 
The Knowledge Graph Explosion
The Knowledge Graph ExplosionThe Knowledge Graph Explosion
The Knowledge Graph Explosion
 
Neo4j 4.1 overview
Neo4j 4.1 overviewNeo4j 4.1 overview
Neo4j 4.1 overview
 
Applying Network Analytics in KYC
Applying Network Analytics in KYCApplying Network Analytics in KYC
Applying Network Analytics in KYC
 
Get Started with the Most Advanced Edition Yet of Neo4j Graph Data Science
Get Started with the Most Advanced Edition Yet of Neo4j Graph Data ScienceGet Started with the Most Advanced Edition Yet of Neo4j Graph Data Science
Get Started with the Most Advanced Edition Yet of Neo4j Graph Data Science
 
How Graph Data Science can turbocharge your Knowledge Graph
How Graph Data Science can turbocharge your Knowledge GraphHow Graph Data Science can turbocharge your Knowledge Graph
How Graph Data Science can turbocharge your Knowledge Graph
 
Pourquoi Leroy Merlin a besoin d'un Knowledge Graph ?
Pourquoi Leroy Merlin a besoin d'un Knowledge Graph ?Pourquoi Leroy Merlin a besoin d'un Knowledge Graph ?
Pourquoi Leroy Merlin a besoin d'un Knowledge Graph ?
 
Neo4j GraphSummit London - The Path To Success With Graph Database and Data S...
Neo4j GraphSummit London - The Path To Success With Graph Database and Data S...Neo4j GraphSummit London - The Path To Success With Graph Database and Data S...
Neo4j GraphSummit London - The Path To Success With Graph Database and Data S...
 
How Graph Algorithms Answer your Business Questions in Banking and Beyond
How Graph Algorithms Answer your Business Questions in Banking and BeyondHow Graph Algorithms Answer your Business Questions in Banking and Beyond
How Graph Algorithms Answer your Business Questions in Banking and Beyond
 
Knowledge Graphs and Generative AI
Knowledge Graphs and Generative AIKnowledge Graphs and Generative AI
Knowledge Graphs and Generative AI
 
Knowledge Graphs and Graph Data Science: More Context, Better Predictions (Ne...
Knowledge Graphs and Graph Data Science: More Context, Better Predictions (Ne...Knowledge Graphs and Graph Data Science: More Context, Better Predictions (Ne...
Knowledge Graphs and Graph Data Science: More Context, Better Predictions (Ne...
 
EY + Neo4j: Why graph technology makes sense for fraud detection and customer...
EY + Neo4j: Why graph technology makes sense for fraud detection and customer...EY + Neo4j: Why graph technology makes sense for fraud detection and customer...
EY + Neo4j: Why graph technology makes sense for fraud detection and customer...
 
Introduction to Knowledge Graphs and Semantic AI
Introduction to Knowledge Graphs and Semantic AIIntroduction to Knowledge Graphs and Semantic AI
Introduction to Knowledge Graphs and Semantic AI
 
Neo4j GraphSummit London March 2023 Emil Eifrem Keynote.pptx
Neo4j GraphSummit London March 2023 Emil Eifrem Keynote.pptxNeo4j GraphSummit London March 2023 Emil Eifrem Keynote.pptx
Neo4j GraphSummit London March 2023 Emil Eifrem Keynote.pptx
 
The Art of the Possible with Graph - Sudhir Hasbe - GraphSummit London 14 Nov...
The Art of the Possible with Graph - Sudhir Hasbe - GraphSummit London 14 Nov...The Art of the Possible with Graph - Sudhir Hasbe - GraphSummit London 14 Nov...
The Art of the Possible with Graph - Sudhir Hasbe - GraphSummit London 14 Nov...
 
The perfect couple: Uniting Large Language Models and Knowledge Graphs for En...
The perfect couple: Uniting Large Language Models and Knowledge Graphs for En...The perfect couple: Uniting Large Language Models and Knowledge Graphs for En...
The perfect couple: Uniting Large Language Models and Knowledge Graphs for En...
 
Knowledge Graphs - The Power of Graph-Based Search
Knowledge Graphs - The Power of Graph-Based SearchKnowledge Graphs - The Power of Graph-Based Search
Knowledge Graphs - The Power of Graph-Based Search
 
Graphs in Telecommunications - Jesus Barrasa, Neo4j
Graphs in Telecommunications - Jesus Barrasa, Neo4jGraphs in Telecommunications - Jesus Barrasa, Neo4j
Graphs in Telecommunications - Jesus Barrasa, Neo4j
 
Neo4j Graph Use Cases, Bruno Ungermann, Neo4j
Neo4j Graph Use Cases, Bruno Ungermann, Neo4jNeo4j Graph Use Cases, Bruno Ungermann, Neo4j
Neo4j Graph Use Cases, Bruno Ungermann, Neo4j
 
The Data Platform for Today’s Intelligent Applications
The Data Platform for Today’s Intelligent ApplicationsThe Data Platform for Today’s Intelligent Applications
The Data Platform for Today’s Intelligent Applications
 

Similar to Workshop Tel Aviv - Graph Data Science

Graph Data Science with Neo4j: Nordics Webinar
Graph Data Science with Neo4j: Nordics WebinarGraph Data Science with Neo4j: Nordics Webinar
Graph Data Science with Neo4j: Nordics Webinar
Neo4j
 
La strada verso il successo con i database a grafo, la Graph Data Science e l...
La strada verso il successo con i database a grafo, la Graph Data Science e l...La strada verso il successo con i database a grafo, la Graph Data Science e l...
La strada verso il successo con i database a grafo, la Graph Data Science e l...
Neo4j
 
Introduction to Neo4j for the Emirates & Bahrain
Introduction to Neo4j for the Emirates & BahrainIntroduction to Neo4j for the Emirates & Bahrain
Introduction to Neo4j for the Emirates & Bahrain
Neo4j
 

Similar to Workshop Tel Aviv - Graph Data Science (20)

GPT and Graph Data Science to power your Knowledge Graph
GPT and Graph Data Science to power your Knowledge GraphGPT and Graph Data Science to power your Knowledge Graph
GPT and Graph Data Science to power your Knowledge Graph
 
Einstieg in Neo4j Graph Data Science
Einstieg in Neo4j Graph Data ScienceEinstieg in Neo4j Graph Data Science
Einstieg in Neo4j Graph Data Science
 
ntroducing to the Power of Graph Technology
ntroducing to the Power of Graph Technologyntroducing to the Power of Graph Technology
ntroducing to the Power of Graph Technology
 
Graph Data Science with Neo4j: Nordics Webinar
Graph Data Science with Neo4j: Nordics WebinarGraph Data Science with Neo4j: Nordics Webinar
Graph Data Science with Neo4j: Nordics Webinar
 
Graph Data Science: The Secret to Accelerating Innovation with AI/ML
Graph Data Science: The Secret to Accelerating Innovation with AI/MLGraph Data Science: The Secret to Accelerating Innovation with AI/ML
Graph Data Science: The Secret to Accelerating Innovation with AI/ML
 
Government GraphSummit: Leveraging Graphs for AI and ML
Government GraphSummit: Leveraging Graphs for AI and MLGovernment GraphSummit: Leveraging Graphs for AI and ML
Government GraphSummit: Leveraging Graphs for AI and ML
 
Introduction to Neo4j
Introduction to Neo4jIntroduction to Neo4j
Introduction to Neo4j
 
Using Connected Data and Graph Technology to Enhance Machine Learning and Art...
Using Connected Data and Graph Technology to Enhance Machine Learning and Art...Using Connected Data and Graph Technology to Enhance Machine Learning and Art...
Using Connected Data and Graph Technology to Enhance Machine Learning and Art...
 
Relationships Matter: Using Connected Data for Better Machine Learning
Relationships Matter: Using Connected Data for Better Machine LearningRelationships Matter: Using Connected Data for Better Machine Learning
Relationships Matter: Using Connected Data for Better Machine Learning
 
Webinar - IA generativa e grafi Neo4j: RAG time!
Webinar - IA generativa e grafi Neo4j: RAG time!Webinar - IA generativa e grafi Neo4j: RAG time!
Webinar - IA generativa e grafi Neo4j: RAG time!
 
Government GraphSummit: Optimizing the Supply Chain
Government GraphSummit: Optimizing the Supply ChainGovernment GraphSummit: Optimizing the Supply Chain
Government GraphSummit: Optimizing the Supply Chain
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Optimizing Your Supply Chain with the Neo4j Graph
Optimizing Your Supply Chain with the Neo4j GraphOptimizing Your Supply Chain with the Neo4j Graph
Optimizing Your Supply Chain with the Neo4j Graph
 
Graphs for Data Science and Machine Learning
Graphs for Data Science and Machine LearningGraphs for Data Science and Machine Learning
Graphs for Data Science and Machine Learning
 
Knowledge Graphs - Journey to the Connected Enterprise - Data Strategy and An...
Knowledge Graphs - Journey to the Connected Enterprise - Data Strategy and An...Knowledge Graphs - Journey to the Connected Enterprise - Data Strategy and An...
Knowledge Graphs - Journey to the Connected Enterprise - Data Strategy and An...
 
Graph Data Science at Scale
Graph Data Science at ScaleGraph Data Science at Scale
Graph Data Science at Scale
 
La strada verso il successo con i database a grafo, la Graph Data Science e l...
La strada verso il successo con i database a grafo, la Graph Data Science e l...La strada verso il successo con i database a grafo, la Graph Data Science e l...
La strada verso il successo con i database a grafo, la Graph Data Science e l...
 
Neo4j – The Fastest Path to Scalable Real-Time Analytics
Neo4j – The Fastest Path to Scalable Real-Time AnalyticsNeo4j – The Fastest Path to Scalable Real-Time Analytics
Neo4j – The Fastest Path to Scalable Real-Time Analytics
 
Introduction to Neo4j for the Emirates & Bahrain
Introduction to Neo4j for the Emirates & BahrainIntroduction to Neo4j for the Emirates & Bahrain
Introduction to Neo4j for the Emirates & Bahrain
 
New! Neo4j AuraDS: The Fastest Way to Get Started with Data Science in the Cloud
New! Neo4j AuraDS: The Fastest Way to Get Started with Data Science in the CloudNew! Neo4j AuraDS: The Fastest Way to Get Started with Data Science in the Cloud
New! Neo4j AuraDS: The Fastest Way to Get Started with Data Science in the Cloud
 

More from Neo4j

More from Neo4j (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
QIAGEN: Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
QIAGEN: Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansQIAGEN: Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
QIAGEN: Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
ISDEFE - GraphSummit Madrid - ARETA: Aviation Real-Time Emissions Token Accre...
ISDEFE - GraphSummit Madrid - ARETA: Aviation Real-Time Emissions Token Accre...ISDEFE - GraphSummit Madrid - ARETA: Aviation Real-Time Emissions Token Accre...
ISDEFE - GraphSummit Madrid - ARETA: Aviation Real-Time Emissions Token Accre...
 
BBVA - GraphSummit Madrid - Caso de éxito en BBVA: Optimizando con grafos
BBVA - GraphSummit Madrid - Caso de éxito en BBVA: Optimizando con grafosBBVA - GraphSummit Madrid - Caso de éxito en BBVA: Optimizando con grafos
BBVA - GraphSummit Madrid - Caso de éxito en BBVA: Optimizando con grafos
 
Graph Everywhere - Josep Taruella - Por qué Graph Data Science en tus modelos...
Graph Everywhere - Josep Taruella - Por qué Graph Data Science en tus modelos...Graph Everywhere - Josep Taruella - Por qué Graph Data Science en tus modelos...
Graph Everywhere - Josep Taruella - Por qué Graph Data Science en tus modelos...
 
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jGraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
 
Neo4j_Exploring the Impact of Graph Technology on Financial Services.pdf
Neo4j_Exploring the Impact of Graph Technology on Financial Services.pdfNeo4j_Exploring the Impact of Graph Technology on Financial Services.pdf
Neo4j_Exploring the Impact of Graph Technology on Financial Services.pdf
 
Rabobank_Exploring the Impact of Graph Technology on Financial Services.pdf
Rabobank_Exploring the Impact of Graph Technology on Financial Services.pdfRabobank_Exploring the Impact of Graph Technology on Financial Services.pdf
Rabobank_Exploring the Impact of Graph Technology on Financial Services.pdf
 
IA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG timeIA Generativa y Grafos de Neo4j: RAG time
IA Generativa y Grafos de Neo4j: RAG time
 
Neo4j: Data Engineering for RAG (retrieval augmented generation)
Neo4j: Data Engineering for RAG (retrieval augmented generation)Neo4j: Data Engineering for RAG (retrieval augmented generation)
Neo4j: Data Engineering for RAG (retrieval augmented generation)
 
Neo4j Graph Summit 2024 Workshop - EMEA - Breda_and_Munchen.pdf
Neo4j Graph Summit 2024 Workshop - EMEA - Breda_and_Munchen.pdfNeo4j Graph Summit 2024 Workshop - EMEA - Breda_and_Munchen.pdf
Neo4j Graph Summit 2024 Workshop - EMEA - Breda_and_Munchen.pdf
 
Enabling GenAI Breakthroughs with Knowledge Graphs
Enabling GenAI Breakthroughs with Knowledge GraphsEnabling GenAI Breakthroughs with Knowledge Graphs
Enabling GenAI Breakthroughs with Knowledge Graphs
 
Neo4j_Anurag Tandon_Product Vision and Roadmap.Benelux.pptx.pdf
Neo4j_Anurag Tandon_Product Vision and Roadmap.Benelux.pptx.pdfNeo4j_Anurag Tandon_Product Vision and Roadmap.Benelux.pptx.pdf
Neo4j_Anurag Tandon_Product Vision and Roadmap.Benelux.pptx.pdf
 
Neo4j Jesus Barrasa The Art of the Possible with Graph
Neo4j Jesus Barrasa The Art of the Possible with GraphNeo4j Jesus Barrasa The Art of the Possible with Graph
Neo4j Jesus Barrasa The Art of the Possible with Graph
 
SWIFT: Maintaining Critical Standards in the Financial Services Industry with...
SWIFT: Maintaining Critical Standards in the Financial Services Industry with...SWIFT: Maintaining Critical Standards in the Financial Services Industry with...
SWIFT: Maintaining Critical Standards in the Financial Services Industry with...
 
Deloitte & Red Cross: Talk to your data with Knowledge-enriched Generative AI
Deloitte & Red Cross: Talk to your data with Knowledge-enriched Generative AIDeloitte & Red Cross: Talk to your data with Knowledge-enriched Generative AI
Deloitte & Red Cross: Talk to your data with Knowledge-enriched Generative AI
 

Recently uploaded

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Recently uploaded (20)

How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 

Workshop Tel Aviv - Graph Data Science

  • 1. Neo4j, Inc. All rights reserved 2021 Neo4j, Inc. All rights reserved 2021 1 What Graph Technology can do with your Data… GDS Workshop Tel Aviv Kristof Neys, Graph Data Science Specialist - Field Engineering EMEA/APAC Jul 2022
  • 2. Neo4j, Inc. All rights reserved 2021 2 Graph Data Science Workshop ● Get your Neo4j Engine up & running and register at: https://neo4j.com/sandbox/ ● Get the script to code (copy) along: https://github.com/Kristof-Neys/Neo4j_demos
  • 3. Neo4j, Inc. All rights reserved 2021 3 We will cover… 1. Knowledge Graphs 2. Why Graph Data Science 3. Neo4j Graph Data Science 4. Algo in Action 5. Graph Embeddings 6. Graph Machine Learning 7. Access & Integration 8. Use cases 9. Demo Time!
  • 4. Neo4j, Inc. All rights reserved 2021 4 It’s all about Knowledge Graphs
  • 5. Neo4j, Inc. All rights reserved 2021 5 Driving Intelligence into Data with Knowledge Graphs Data Graph Dynamic Context Knowledge Graph Deep Dynamic Context
  • 6. Neo4j, Inc. All rights reserved 2021 6 From Data points to Knowledge Graph Car D RIVES name: “Dan” born: May 29, 1978 twitter: “@dan” name: “Ann” born: Dec 5, 1979 since: Jan 10, 2021 brand: “Volvo” model: “V90” LOVES LOVES LIVES_WITH O W N S Person Person
  • 7. Neo4j, Inc. All rights reserved 2021 User :VISITED Website User IPLocation Website IPLocation Website Website Website :VISITED :VISITED :VISITED :USED :USED : U S E D : V I S I T E D : V I S I T E D :VISITED :SAME_AS Graphs allows you to make implicit relationships…. ….explicit Graphs….Grow!
  • 8. Neo4j, Inc. All rights reserved 2021 :SAME_AS User :VISITED Website User IPLocation Website IPLocation Website Website Website :VISITED :VISITED :VISITED :USED :USED : U S E D : V I S I T E D : V I S I T E D :VISITED User :SAM E_AS :USED :VISITED PersonId: 1 PersonId: 1 PersonId: 1 User PersonId: 2 :VISITED …and can then group similar nodes…and create a new graph from the explicit relationships… A graph grows organically - gaining insights and enriching your data Graphs….Grow!
  • 9. Neo4j, Inc. All rights reserved 2021 Connectedness and Size of Data Set Response Time Relational and Other NoSQL Databases 0 to 2 hops 0 to 3 degrees of separation Thousands of connections Tens to hundreds of hops Thousands of degrees Billions of connections 1000x Advantage at scale “Minutes to milliseconds” 1000x Performance @Unlimited Scale
  • 10. Neo4j, Inc. All rights reserved 2021 10 Knowledge graphs in Credit risk analysis
  • 11. Neo4j, Inc. All rights reserved 2021 11 We eat, sleep, drink.. Knowledge Graphs… And.. …We even published a book-let on it….get your free copy.
  • 12. Neo4j, Inc. All rights reserved 2021 12 Why Graph Data Science?
  • 13. Neo4j, Inc. All rights reserved 2021 Where Deepmind goes... “We argue that combinatorial generalisation must be a top priority for AI to achieve human-like abilities, and that structured representations [i.e. Graphs] and computations are key to realizing this objective”
  • 14. Neo4j, Inc. All rights reserved 2021 Everything is a Graph...
  • 15. Neo4j, Inc. All rights reserved 2021 Graph Neural Networks are HOT!
  • 16. Neo4j, Inc. All rights reserved 2021 And Industry is picking it up too….
  • 17. Neo4j, Inc. All rights reserved 2021 17 Why & how Neo4j Graph Data Science?
  • 18. Neo4j, Inc. All rights reserved 2021 Neo4j’s Graph Data Science Framework Neo4j Graph Data Science Library Neo4j Database Neo4j Bloom Scalable Graph Algorithms & Analytics Workspace Native Graph Creation & Persistence Visual Graph Exploration & Prototyping
  • 19. Neo4j, Inc. All rights reserved 2021 19 Graphs & Data Science Knowledge Graphs Graph Algorithms Graph Native Machine Learning Find the patterns you’re looking for in connected data Use unsupervised machine learning techniques to identify associations, anomalies, and trends. Use embeddings to learn the features in your graph that you don’t even know are important yet. Train in-graph supervised ML models to predict links, labels, and missing data.
  • 20. Neo4j, Inc. All rights reserved 2021 20 60+ Graph Data Science Techniques in Neo4j Pathfinding & Search • Shortest Path • Single-Source Shortest Path • All Pairs Shortest Path • A* Shortest Path • Yen’s K Shortest Path • Minimum Weight Spanning Tree • K-Spanning Tree (MST) • Random Walk • Breadth & Depth First Search Centrality & Importance • Degree Centrality • Closeness Centrality • Harmonic Centrality • Betweenness Centrality & Approx. • PageRank • Personalized PageRank • ArticleRank • Eigenvector Centrality • Hyperlink Induced Topic Search (HITS) • Influence Maximization (Greedy, CELF) Community Detection • Triangle Count • Local Clustering Coefficient • Connected Components (Union Find) • Strongly Connected Components • Label Propagation • Louvain Modularity • K-1 Coloring • Modularity Optimization • Speaker Listener Label Propagation Supervised Machine Learning • Node Classification • Link Prediction … and more! Heuristic Link Prediction • Adamic Adar • Common Neighbors • Preferential Attachment • Resource Allocations • Same Community • Total Neighbors Similarity • Node Similarity • K-Nearest Neighbors (KNN) • Jaccard Similarity • Cosine Similarity • Pearson Similarity • Euclidean Distance • Approximate Nearest Neighbors (ANN) Graph Embeddings • Node2Vec • FastRP • FastRPExtended • GraphSAGE • Synthetic Graph Generation • Scale Properties • Collapse Paths • One Hot Encoding • Split Relationships • Graph Export • Pregel API (write your own algos)
  • 21. Neo4j, Inc. All rights reserved 2021 21 Before we go any further - let’s Quiz!
  • 22. Neo4j, Inc. All rights reserved 2021 22 Which is the most important station…?
  • 23. Neo4j, Inc. All rights reserved 2021 23 Betweenness Centrality (BC) ● The BC score of a node is determined by the number of shortest paths running through it. ● The more shortest paths that go through a node, the higher the BC score of that node. ● Betweenness centrality: “information flow”, “connector points”, “bridge”... ○ Estate agents ○ ...
  • 24. Neo4j, Inc. All rights reserved 2021 Example: Betweenness centrality The need for speed… ● NetworkX vs Neo4j ● Graph: ○ 42k nodes / 126k edges ● Time to compute…. ○ Neo4j: 10 secs ○ NetworkX: 15,284 secs (that is 4 hours 15min...) ● How?? Multi-Source Breadth-First-Search
  • 25. Neo4j, Inc. All rights reserved 2021 25 How can they be used? Stand Alone Solution Find significant patterns and optimal structures Use community detection and similarity scores for recommendations Machine Learning Pipeline Use the measures as features to train an ML model 1st node 2nd node Common neighbors Preferential attachment Label 1 2 4 15 1 3 4 7 12 1 5 6 1 1 0 25
  • 26. Neo4j, Inc. All rights reserved 2021 26 Graph Projection - Focus time…
  • 27. Neo4j, Inc. All rights reserved 2021 27 Monopartite graph ● is a single set of nodes that are interconnected ● is what you need for the majority of the graph algorithms
  • 28. Neo4j, Inc. All rights reserved 2021 Bipartite graph ● two sets of nodes that are connected but the sets themselves are not interconnected ● great as input for algorithms (such as node similarity) that are used to create a monopartite graph
  • 29. Neo4j, Inc. All rights reserved 2021 The Graph Catalog – from Data Model to Predictive Model • Neo4j automates data transformations • Experiment with different data sets, data models • Fast iterations & layering • Production ready features, parallelization & enterprise support • Ability to persist and version data A graph-specific analytics workspace that’s mutable – integrated with a native-graph database Mutable In-Memory Workspace Computational Graph Native Graph Store
  • 30. Neo4j, Inc. All rights reserved 2021 30 Our Implementations are Fast - and Getting Faster LDBC100 (LDBC Social Network Scale Factor 100) 300M+ nodes 2B+ relationships LDBC100PKP (LDBC Social Network Scale Factor 100) 500k nodes 46M+ relationships Logical Cores: 64 Memory: 512GB Storage: 600GB NVMe-SSD AWS EC2 R5D16XLarge Intel Xeon Platinum 8000 (Skylake-SP or Cascade Lake) Node Similarity 20min Betweenness Centrality 10min Node2Vec 2.8min Label Propagation 46sec Weakly Connected Components 36sec Local Clustering Coefficient 4.76min FastRP 1.33min PageRank 53sec Louvain 14.66min
  • 31. Neo4j, Inc. All rights reserved 2021 Algo in action: Node Similarity 31
  • 32. Neo4j, Inc. All rights reserved 2021 32 Node similarity ● The Node similarity algorithm compares a node based on the nodes they are connected to. That is, two nodes are similar if they share the same neighbours. ● The algorithm takes in a bipartite, connected graph of two disjoint node sets, for instance ‘Person’ and ‘Food_Drink’ ● The GDS Node similarity function is based on the Jaccard metric. For two nodes, A and B, we compute
  • 33. Neo4j, Inc. All rights reserved 2021 Node similarity - suppose...
  • 34. Neo4j, Inc. All rights reserved 2021 Project the Graph… CALL gds.graph.project( 'myGraph', ['Person', 'Food_Drink'], { LIKES: { type: 'LIKES' } } ); ● Food_Drink: Trappist, Sausages, Green_Tea, Vegan_Burger, Frites, Mussels, Sushi ● Person: Alicia, Stefan, Tom, Kristof
  • 35. Neo4j, Inc. All rights reserved 2021 Simple call to GDS function… CALL gds.nodeSimilarity.stream('myGraph') YIELD node1, node2, similarity RETURN gds.util.asNode(node1).name AS Person1, gds.util.asNode(node2).name AS Person2,similarity ORDER BY similarity DESCENDING, Person1
  • 36. Neo4j, Inc. All rights reserved 2021 Et Voila...
  • 37. Neo4j, Inc. All rights reserved 2021 Node similarity Use Cases: ● Customer classification based on purchases ● Movie recommendations... ● Similarity scores can be stored as a relationship property -> feature engineering ● ... Caveats: ● O(n^2) ● Optimize algorithm by limiting the number of computation per node, topK parameter
  • 38. Neo4j, Inc. All rights reserved 2021 Graph Embeddings: From Chaos to Structure… 38
  • 39. Neo4j, Inc. All rights reserved 2021 Node Embedding What are node embeddings? How? The representation of nodes as low-dimensional vectors that summarize their graph position, the structure of their local graph neighborhood as well as any possible node features Encoder - Decoder Framework
  • 40. Neo4j, Inc. All rights reserved 2021 Node Embedding Encode nodes such that similarity in the embedding space, i.e. cosine similarity, approximates similarity in the graph
  • 41. Neo4j, Inc. All rights reserved 2021 Graph Embeddings in Neo4j Node2Vec Random walk based embedding that can encode structural similarity or topological proximity. Easy to understand, interpretable parameters, plenty of examples GraphSAGE Inductive embedding that encodes properties of neighboring nodes when learning topology. Generalizes to unseen graphs, first method to incorporate properties FastRP A super fast linear algebra based approach to embeddings that can encode topology or properties. 75,000x faster than Node2Vec extended to encode properties
  • 42. Neo4j, Inc. All rights reserved 2021 42 What is the intuition…?
  • 43. Neo4j, Inc. All rights reserved 2021 Toy example on Embeddings & FastRP
  • 44. Neo4j, Inc. All rights reserved 2021 Cypher calls Step 2: Project the Graph: CALL gds.graph.project( 'persons', 'Person', { KNOWS: { orientation: 'UNDIRECTED' } }) Step 3: Write Basic FastRp embeddings: CALL gds.fastRP.write( 'persons', { embeddingDimension: 2, writeProperty: 'FastRP-embed', randomSeed: 42 } ) YIELD nodePropertiesWritten
  • 45. Neo4j, Inc. All rights reserved 2021 Recall, embeddings are simply vectors...
  • 46. Neo4j, Inc. All rights reserved 2021 Use Cosine to do a check... Step 4: Run basic Cosine similarity: MATCH (p1:Person) MATCH (p2:Person) WHERE id(p2) >id(p1) RETURN p1.name as from, p2.name as to, gds.alpha.similarity.cosine(p1.`FastRP-embed`, p2.`FastRP-embed`) AS similarity ORDER BY similarity DESC
  • 47. Neo4j, Inc. All rights reserved 2021 Et Voila… - top 5
  • 48. Neo4j, Inc. All rights reserved 2021
  • 49. Neo4j, Inc. All rights reserved 2021 Et Voila… - bottom 5 Conclusion: As can be seen from the actual graph, ‘Elisa’ and ‘Dan’ are furthest removed from each other, with length of 3, which is reflected in their embeddings, and hence in the cosine similarity computation. ‘Jeff’, ‘Annie’, ‘Brie’ are near each other which is reflected in their similarity score.
  • 50. Neo4j, Inc. All rights reserved 2021 50 Graph Machine Learning
  • 51. Neo4j, Inc. All rights reserved 2021 51 Node Classification - in Neo4j Load your in- memory graph with labels & features Use nodeClassification.train Specify the property you want to predict and the features for making that prediction Node classification: Predicting a node label or (categorical) property Neo4j Automates the Tricky Parts: 1. Splits data for train & test 2. Builds logistic regression models using the training data & specified parameters to predict the correct label 3. Evaluates the accuracy of the models using the test data 4. Returns the best performing model The predictive model appears in the model catalog, ready to apply to new data
  • 52. Neo4j, Inc. All rights reserved 2021 52 Link Prediction - in Neo4j Load your in- memory graph with labels & features Use linkPrediction.train Split your graph into train & test splitRelationships.mutate Link Prediction: Predicting unobserved edges or relationships that will form in the future Neo4j Automates the Tricky Parts: 1. Builds logistic regression models using the training data & specified parameters to predict the correct label 2. Evaluates the accuracy of the models using the test data 3. Returns the best performing model The predictive model appears in the model catalog, ready to apply to new data
  • 53. Neo4j, Inc. All rights reserved 2021 53 Link Prediction
  • 54. Neo4j, Inc. All rights reserved 2021 54 Link Prediction
  • 55. Neo4j, Inc. All rights reserved 2021 55 Access & Integration
  • 56. Neo4j, Inc. All rights reserved 2021 56 Access & deploy GDS ● In addition to the Neo4j Browser, access to the GDS library can be done using the Neo4j Drivers
  • 57. Neo4j, Inc. All rights reserved 2021 Neo4j GDS - Pythonic way…. https://github.com/neo4j/graph-data-science-client
  • 58. Neo4j, Inc. All rights reserved 2021 Integrating Neo4j in production workflow
  • 59. Neo4j, Inc. All rights reserved 2021 59 One last thing…. It’s better with Transformers...
  • 60. Neo4j, Inc. All rights reserved 2021 60
  • 61. Neo4j, Inc. All rights reserved 2021 61
  • 62. Neo4j, Inc. All rights reserved 2021 Use cases 62
  • 63. Neo4j, Inc. All rights reserved 2021 63 The Modern Supply Chain is a Graph
  • 64. Neo4j, Inc. All rights reserved 2021 “ 64 Bill of Materials “We looked at the problem and had a diagram with circles coming off from lines, and it was a representation of our graph omen.” Ann Grubbs Chief Data Engineer, Lockheed Martin Space Challenge Product data housed in various silos across the organization could not be easily integrated Solution Knowledge graph of components and parts to build satellites and equipment to reduce costs and increase efficiency Why Neo4j Flexible, Contextual Data Model Reduce Costs Increased Efficiency https://go.neo4j.com/rs/710-RRC-335/images/Neo4j-case-study-lockheed-martin-space-EN-US.pdf?_gl=1*1l9aumn*_ga*MTY4Mjc3NzczOS4xNjI4NTYwNzAx*_ga_DL38Q8KGQC*MTY0OTk4MTc4OC40NTMuMC4xNjQ5 jA.&_ga=2.56975401.2084245390.1649785148-1682777739.1628560701&_gac=1.217804388.1646438592.CjwKCAiAjoeRBhAJEiwAYY3nDOfaswGYvytf8zzvFmfYpQ0i2UV4KkD_teIXnZtaeFtcrIuLeI7j8BoCgIwQAvD_Bw
  • 65. Neo4j, Inc. All rights reserved 2021 65 Neo4j working with Banking Circle to detect Fraud
  • 66. Neo4j, Inc. All rights reserved 2021 66 ● Boston Scientific needed a more efficient method for finding the root causes of quality control problems. ● The heart of Boston Scientific’s graph data model consists of three nodes representing a finished product, a part and an issue, with relationships that trace problems to parts and connect those to finished products. ● The Boston Scientific team analyzes its graph and computes scores that rank nodes based on their proximity to failures, enriching its models with insights derived from the graph.
  • 67. Neo4j, Inc. All rights reserved 2021 67 NASA: A Knowledge Graph to identify trends that can prevent disasters and incorporate lessons learned into new projects. Getting to Mars Faster with a Knowledge Graph David Meza, Chief Knowledge Architect at NASA: "This has saved us at least a year and over $2 million in research and development toward our Mission to Mars planning."
  • 68. Neo4j, Inc. All rights reserved 2021 68 • Challenge: Focus on preventative maintenance to avoid costly post-failure remedial actions • Solution: 27 million warranty & service documents parsed for text to knowledge graph that is context for AI to learn “prime examples” and anticipate maintenance • Results: ○ Proactive remedial action has saved downtime & associated costs and increased productivity Caterpillar Preventative Maintenance
  • 69. Neo4j, Inc. All rights reserved 2021 69 Demo Time…! (but first some Cypher…)
  • 70. Neo4j, Inc. All rights reserved 2021 Neo4j, Inc. All rights reserved 2021 Cypher: first we CREATE 70 MATCH (:Person { name:“Dan”} ) -[:LOVES]-> (:Person { name:“Ann”} ) Person NODE NODE LABEL PROPERTY LABEL PROPERTY CREATE RELATIONSHIP name: ‘Ann’ LOVES Person name: ‘Dan’
  • 71. Neo4j, Inc. All rights reserved 2021 Neo4j, Inc. All rights reserved 2021 Cypher: and then we MATCH a pattern in the Graph 71 MARRIED_TO Person name: ‘Dan’ MATCH (p:Person { name:“Dan”} ) -[:MARRIED_TO]-> (spouse) NODE RELATIONSHIP TYPE LABEL PROPERTY VARIABLE spouse NODE RETURN p, spouse VARIABLE
  • 72. Neo4j, Inc. All rights reserved 2021 72 In Cypher you MATCH a pattern and then RETURN a result MATCH (c:Country {name: "Finland"}) RETURN c; 001 Filtering is done with WHERE (this statement does exactly the same) MATCH (c:Country) WHERE c.name = "Finland" RETURN c; 002
  • 73. Neo4j, Inc. All rights reserved 2021 Neo4j, Inc. All rights reserved 2021 73 Thank you…,OK, now let’s Demo!