This repository contains a Jupyter notebook that shows how I performed the calculations posted in this blog post.
Please see the full Jupyter Notebook rendered for your browser by following this link.
In my opinion, the easiest way to run the notebook for yourself is to download and install Anaconda Python version 2. This will include numpy, networkx, You may also need to install on your system: