Skip to content

neo4j-graph-examples/contact-tracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tracing

Contact Tracing Graph Example

Description: Tracing infections between people based on their contacts

Nodes 5615 Relationships 15130

model
Figure 1. Model
example
Figure 2. Example
Example Query:
MATCH (p:Person {healthstatus:$status})-[v:VISITS]->(pl:Place)
 WHERE p.confirmedtime < v.starttime
 RETURN distinct pl.name as place LIMIT 20

Setup

This is for Neo4j version: 3.5,4.0

Required plugins: gds

Load graph data via the following:

Dump file: data/contact-tracing-40.dump

  • Drop the file into the Files section of a project in Neo4j Desktop. Then choose the option to Create new DBMS from dump option from the file options.

  • Use the neo4j-admin tool to load data from the command line with the command below.

bin/neo4j-admin load --from data/contact-tracing-40.dump [--database "database"]

Code Examples

Feedback

Feel free to submit issues or pull requests for improvement on this repository.