Skip to content

A Python Script that can study and get information on a realistic Graph, in our case, the Bitcoin Alpha one

License

Notifications You must be signed in to change notification settings

riki95/Bitcoin-Graph-study-with-NetworkX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin Graph study with NetworkX

This is my University work, made to study a realistic Graph. The one I've chosen is the Bitcoin Alpha Graph.

Getting Started

To download my repo:

git clone https://github.com/riki95/Bitcoin-Graph-study-with-NetworkX

The program was written in Python and compiled with Python 3.6 so you need it to run it. The program needs a graph in input which is a csv file and I used the Bitcoin Alpha Dataset.

Bitcoin Alpha Dataset

The Bitcoin Alpha Dataset is a csv file that consists on 4 columns:

SOURCE, TARGET, RATING, TIME

I've decided to only study Source, Target and Rating because Time was not so important to care about. You can just download my repo and you will find the dataset with the first row removed (it was the one with the Column's names) or you can download it from the official website.

Reproduce experiments

Reproducing experiments is very easy, running this command on terminal is enough:

python bitcoin_graph_analysis.py

You will see the analysys on the terminal or you can export it to a file modifing the parameter file inside the Python script.

You can modify the Graph in input and the analysis is quite the same. Obviously you have to adapt some methods.

Plots

Thanks to this script you will be able to draw your graph:

Bitcoin Graph Image

You can modify colors, nodes, scales and so on. You can also draw histograms:

Diameter Historgram

This has been done with Matplotlib and it is very useful if you need to plot degrees or something like that.

Authors

  • Riccardo Basso - Università degli studi di Genova

About

A Python Script that can study and get information on a realistic Graph, in our case, the Bitcoin Alpha one

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages