This folder contains the (platform-independent) python code to produce the Gillespie simulations found in Silk H, Homer M and Gross T, 'Design of self-organising networks'. constant_processes.py is used for Sec. 3, Fig.1 Folder degree_k is for Sec. 4: - powerlaw.py refers to Fig. 2 - bimodal.py refers to Fig. 3 - the folder also contains some supporting files which must be included in order for the above to run Folder binary is for Sec 5: - binary.py refers to Fig. 4 - binary_degreek.py refers to Fig 5 - the folder also contains some supporting files which must be included in order for the above to run The code was developed in python 2.7, using the following libraries: - collections - datetime - matplotlib==1.3.1 - networkx==1.11 - numpy==1.8 - random - scipy==0.13 - sortedcontainers==1.5.3