Skip to content

Code associated to the paper "Group interactions modulate critical mass dynamics in social convention" by Iacopini et al. Commun Phys 5, 64 (2022)

License

Notifications You must be signed in to change notification settings

iaciac/higher-order-NG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Group interactions modulate critical mass dynamics in social convention

This repository contains the code required to reproduce the results presented in the following paper:

Data

This study relies on publicly available datasets that have been collected and released in previous publications:

Original and processed data are both stored in the Data folder.

Code

Most of the scripts are Jupyter notebooks contained in the Notebooks folder:

  • 0_Integrating MF equations for 2-words HONG.ipynb defines mean field equations and integrates them numerically
  • 1_Simulations - Homogeneous Mixing 2-HGs.ipynb simulates the NG on homogeneous 2-hypergraphs for comparison with the analytics
  • 2_ Comparing MF with stochastic simulations.ipynb compares the esults from the previous two notebooks (MF vs analytical)
  • 3_Preprocessing Email-EU and Congress-bills data sets.ipynb processing the two biggest data sets on emails communication and US congress bills
  • 4_Preprocessing Sociopatterns data sets.ipynb processing the face-to-face interactions from the sociopatterns collaboration
  • 5_Example of a simulation on a hypergraph.ipynb simulates one game on a given higher-order structure
  • 6_Aggregating simulations results (run externally) on empirical data sets.ipynb performs an aggregation of the simulation results on empirical data sets (these are run separately through the authomatically created scripts contained in the Scripts folder)
  • 7_Simulations - Homogeneous Mixing HGs with groups of different sizes.ipynb simulates the NG on homogeneous k-hypergraphs of increasing size (these are run separately through the bash script contained in the notebook)
  • 8_Figures.ipynb plots most of the figures

Results are put in a Results folder.

About

Code associated to the paper "Group interactions modulate critical mass dynamics in social convention" by Iacopini et al. Commun Phys 5, 64 (2022)

Resources

License

Stars

Watchers

Forks