neo4j-graph-examples / contact-tracing

Contact Tracing graph for pandemic spread e.g. COVID-19 based on http://blog.bruggen.com/search/label/contact%20tracing

Home Page:https://sandbox.neo4j.com?usecase=contact-tracing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Contact Tracing graph for pandemic spread e.g. COVID-19 based on http://blog.bruggen.com/search/label/contact%20tracing

https://sandbox.neo4j.com?usecase=contact-tracing


Languages

Language:Go 32.5%Language:Java 22.3%Language:C# 19.7%Language:JavaScript 14.2%Language:Python 11.2%