##Codes for "Flocking by stopping -- a novel mechanism of consensus in collective movement"
###Codes
- A Python code ('phaseplane.py') to calculate and plot the phase plane of the ordinary differential equations of the pairwise stop model. The output is a phase plane with axes polarization(m) and average speed(v), in Figure 02 of the manuscript
- A Python code ('SDE_Simulation.py') to perform numerical integration of the stochastic differential equation of the pairwise stop model. The output is a time series of the group polarization and average speed, in the Appendix Figure & Figure 04 of the manuscript
- A Python code ('Gillespie_Simulation.py') to perform numerical simulation of the discrete pairwise stop model. The output is a time series of the group polarization and average speed, in the Appendix Figure & Figure 04 of the manuscript
- A Python code ('Bifurcation.py') to plot a bifurcation diagram of the ordinary differential equations of the pairwise stop model. The output is a bifurcation plot for group polarization and average group speed, in Figure 03 of the manuscript.