Simulating a social network model of belief transmission.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
agentlogic.py
sim-main.py

README.md

Network Simulation

Requirements

  • Anaconda
  • Python 2.7
  • pip

Installation

This assumes you're using Anaconda (and hence already have networkx, numpy, scipy, pandas, matplotlib). ComplexNetworkSim is in pypi, so you can install it with pip.

$ pip install ComplexNetworkSim

ComplexNetworkSim requires SimPy version 2, which can be installed from Anaconda:

$ conda install "simpy>=2.3,<3"

Usage

Set parameters and output directory, then run

$ python sim-main.py

See the ComplexNetworkSim docs to learn more.

Animation example

ComplexNetworkSim provides an easy way to create an animated gif to vizualize a process on a network:

random-network