View source: R/influence_maximization.R
optimal_influential | R Documentation |
Implements optimal algorithm for Influence Maximization
optimal_influential( graph, budget, prob = 0.5, test_method = c("RESILIENCE", "INFLUENCE_LT", "INFLUENCE_IC"), parallel = TRUE )
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" |
parallel |
when true, executes the funtion using multiple CPU cores. Default value is TRUE |
object containing: 1. Vector of influential nodes. 2. Measure of influence. 3. Elapsed time in seconds.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.