View source: R/influence_maximization.R
get_influence | R Documentation |
Quantifies the influence of a set of nodes in a graph
get_influence( graph, nodes, test_method = c("RESILIENCE", "INFLUENCE_LT", "INFLUENCE_IC"), lt_threshold = 0.5 )
graph |
is the igraph object |
nodes |
the set of nodes to calculate influence for |
test_method |
specifies the method to measure influence. Value "RESILIENCE" (number of total nodes REMOVED (NOT THE REMAINING ones as in original resilience function) from the graph); "INFLUENCE_IC" (see simulate_ic method); "INFLUENCE_LT" (see simulate_lt method). Default is "RESILIENCE" |
lt_threshold |
is used as threshold for INFLUENCE_LT |
vector of resiliences of provided combinations
{ graph <- erdos.renyi.game(100, 0.2) get_influence(graph=graph, nodes=V(graph)[1:10], test_method="RESILIENCE") }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.