This repository implements a installable package (run poetry install
in root directory) called evographs
which implements the spatial Moran model on a Graph class, allows for carrying out simulations and animations of the evolution of a Graph object whose nodes reproduce according to the Moran model.
Running python3 -m evographs -h
in the terminal while in the root directory and set parameters as per your liking to start a simulation that is then saved as an animated video that visualises the evolution of the population similarly to the video below.
The below animation for example was made using
python3 -m evographs -n_nodes 50 -n_genotypes 16 -edge_probability 0.2 -selection_intensity 0.8