Simulates a social network friendship graph where users may or may not install an app, and analyses how many users have a friend with the App installed.
Parameters of the simulation:
- Number of nodes
- Expected_degree
- Expected fraction of users with the app installed
- Graph_model (Barabási-Albért, Erdos-Renyi, or Watts-Strogatz)
- App adoption_model (uniform or prop_friends_installed)
For every configuration of parameters, the code:
- Generates num_graphs graphs of n nodes with the given graph model and expected degree
- Assigns installations given adoption model and desired fraction of users
- Computes how many users have a friend with the app installed
To execute, run:
python ifipsec.py