Skip to content

Script to create a visualisation for a graph of Github repositories

Notifications You must be signed in to change notification settings

paulegan/github-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script to create a visualisation for a graph of Github repositories.

For a set of root repositories, the script discovers other associated projects by looking at each user who has starred the repo and then loading all other repos that user also starred. The resulting graph is weighted by the number of starring users in common.

NetworkX is used to create both a static image and an interative version with D3.

To Run

python github-graph.py --github-token xxx --plot-file testrepo.png --json-file testrepo.json github/testrepo
display testrepo.png

python -m SimpleHTTPServer &
open 'http://localhost:8000/index.html?d=testrepo.json'

Output

Example for NetworkX & D3:

networkx graph

Try the interactive version at index.html.

About

Script to create a visualisation for a graph of Github repositories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published