| ic_spread | R Documentation | 
Calculates spread under IC model
ic_spread(graph, seed, runs = 100)
graph | 
 is the weighted igraph object  | 
seed | 
 is a set of seed (initial nodes)  | 
runs | 
 is the number of times the loop should run  | 
output average spread
{
graph <- erdos.renyi.game(500, 0.005)
ic_spread(graph, seed=c(2,5,9,23), runs=10)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.