Code for investigating the event co-participation based bipartite graph structure in the Ilmastokumppanit (Climate Companions) city-to-business network. Should be applicable also to other bipartite module analyses.
functions.py
contains functions needed for creating and analysing the bipartite network. The functions can be called from either a frontend script (frontend.py
was used for creating the results of the related article) or interactively. parameters.py
stores all parameters used in the analysis.
For a short(-ish) walkthrough of the code and main results, have a look at walkthrough.py
(related data is stored at walkthrough_data
). The easiest way to do that is to launch Binder (that saves you the trouble of setting package versions or even installing python):
(Preparing the environment may take a while. When it opens, just click walkthrough.py
to launch the notebook).
The versions used are Python 2.7, pandas 0.22.0, Numpy 1.14.0, NetworkX 2.1, Scipy 1.0.0, and Matplotlib 2.1.2.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.