View source: R/influence_maximization.R
collective_influence | R Documentation |
Returns CI value of given graph and node
collective_influence( graph, neighborhood_distance, node_id, method = c("degree") )
graph |
the igraph object |
neighborhood_distance |
is the distance to which the neighborhood nodes are searched for |
node_id |
is the ID of the target node |
method |
is the metric to calculate sum of influence. Default is "degree" |
influence as product of degree of target node and total sum of degrees of neighborhood TODO: extend the function and include adaptive methods as well as other centrality methods
{collective_influence(graph=erdos.renyi.game(100, 0.2), neighborhood_distance=2, 1)}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.