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