collective_influence: Returns CI value of given graph and node

View source: R/influence_maximization.R

collective_influenceR Documentation

Returns CI value of given graph and node

Description

Returns CI value of given graph and node

Usage

collective_influence(
  graph,
  neighborhood_distance,
  node_id,
  method = c("degree")
)

Arguments

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"

Value

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

Examples

{collective_influence(graph=erdos.renyi.game(100, 0.2), neighborhood_distance=2, 1)}

seekme94/influence.mining documentation built on Aug. 2, 2022, 10:19 p.m.