To install all necessary packages, run:
pip3 install requirements.txt
Notebook with usage examples of the code can be found in examples.ipynb
dla_model_final.py- functions for generating DLA arrays (including dynamic stickiness), statistic visualisations and calculating fractal dimensionnetworks.py- functions for generating networks from DLA, retrieving real-life networks, converting city networks into fractals, visualising and performing analysisanimate_grid.py- a function for generating animated gifs from DLA numpy arraysfractal_city.py- code for retrieving fractals from real-life city networks.
experiments.py- code used for running experiments with changing stickiness and number of walkers; and saving the results into .npy filesresult_analysis.py- code used for reading .npy DLA arrays inresultsfolder and extracting network statistics from themanalyse_cities.py- code used for gathering network statistics for selected real-world cities.
Results generated with experiments can be found in the results folder:
changing_stickness_250_walkersDLA numpy arrays generated withexperiments.pychanging stickiness with 250 walkers. file formatx,y.npy: x - stickiness, y - simulation numberchanging_stickness_400_walkersDLA numpy arrays generated withexperiments.pychanging stickiness with 400 walkers. file formatx,y.npy: x - stickiness, y - simulation numberchanging_walkersDLA numpy arrays generated withexperiments.pychanging number of walkers with stickiness of 1. file formatx,y.npy: x - number of walkers, y - simulation numberreal_cities- csv files with network statistics for selected real-world cities generated withanalyse_cities.pyperiods- a number of DLA .npy arrays generated with periodic stickiness.
