View source: R/influence_maximization.R
greedy_influential | R Documentation |
Implements Greedy algorithm for Influence Maximization
greedy_influential(graph, budget, prob = 0.5, test_method)
graph |
is the igraph object |
budget |
number of influential nodes to be fetched. Default value is 1 |
prob |
probability at which a node influences its neighbours. In case of INFLUENCE_LT, this is becomes the threshold value. Default is 0.5 |
test_method |
specifies the method to measure influence. Value MUST be "RESILIENCE", "INFLUENCE_IC" or "INFLUENCE_LT" |
output containing summary
Kempe, D., Kleinberg, J., & Tardos, É. (2003). Maximizing the Spread of Influence through a Social Network. Proceedings of the Ninth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining - KDD ’03, 137.
{greedy_influential(erdos.renyi.game(500, 0.005), budget=5, prob=0.5, "RESILIENCE")}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.