Description Usage Arguments Examples
This function allows you to simulate disease spread through a network.
1 | diseaseSpread(mat, startnode, p, timesteps, sims)
|
mat |
adjacency matrix of 0 and 1s representing potential links which will transmit infection from an infected to an uninfected node at probability described in p |
startnode |
the node where infection will start |
p |
probability of infection |
timesteps |
number of timesteps per simulation |
sims |
number of simulations |
nodenum |
total number of nodes in the network |
1 | diseasespread()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.