Skip to content

neo4j-graph-examples/twitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitch Network Analysis Graph Example

Description: Learn how to perform a network analysis by using Cypher and Graph Data Science algorithms

NOTE: Due to the size of the data files, you will need git-lfs installed to clone this repository. You can install the tool via homebrew and other package managers, or you can download the library. For more details, see Github’s page for information on git-lfs.

To Do: {todo}

Nodes 4680870 Relationships 10076938

graph model
Figure 1. Model
example
Figure 2. Example
Example Query:
MATCH (s:Stream{name:$streamer})<-[:VIP|:MODERATOR]-(user)
RETURN user.name as moderator_or_vip LIMIT 20

Setup

This is for Neo4j version: 4.2.1

Required plugins: gds,apoc

The database is also available on https://demo.neo4jlabs.com:7473

Username "twitch", password: "twitch", database: "twitch"

Rendered guide available via: :play https://guides.neo4j.com/sandbox/twitch/index.html

Load graph data via the following:

Dump file: data/twitch-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/twitch-40.dump [--database "database"]

Code Examples

Feedback

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