neo4j-graph-examples / twitch

Twitch Streamer Analysis, see Twitchverse https://towardsdatascience.com/twitchverse-a-network-analysis-of-twitch-universe-using-neo4j-graph-data-science-d7218b4453ff

Home Page:https://sandbox.neo4j.com/?usecase=twitch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Twitch Streamer Analysis, see Twitchverse https://towardsdatascience.com/twitchverse-a-network-analysis-of-twitch-universe-using-neo4j-graph-data-science-d7218b4453ff

https://sandbox.neo4j.com/?usecase=twitch


Languages

Language:Go 32.8%Language:Java 22.2%Language:C# 19.7%Language:JavaScript 14.1%Language:Python 11.1%