This repository provides the python code to perform simulations in the carrying-capacity model described in the article "Evolution of cooperation in spatially structured populations with demes on graphs" by Alix Moawad, Alia Abbara and Anne-Florence Bitbol.
Clone this repository on your local machine by running
git clone git@github.com:Bitbol-Lab/Cooperation_structured_pop.git
and move inside the root folder.
We recommend creating and activating a dedicated conda
or virtualenv
Python virtual environment.
Then, install the required libraries:
python -m pip install -U -r requirements.txt
In order to run the notebooks, the following python packages are required:
- numpy==1.19.5
- numba==0.45.1
- mkl-random==1.1.0