get_influence: Quantifies the influence of a set of nodes in a graph

View source: R/influence_maximization.R

get_influenceR Documentation

Quantifies the influence of a set of nodes in a graph

Description

Quantifies the influence of a set of nodes in a graph

Usage

get_influence(
  graph,
  nodes,
  test_method = c("RESILIENCE", "INFLUENCE_LT", "INFLUENCE_IC"),
  lt_threshold = 0.5
)

Arguments

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

Value

vector of resiliences of provided combinations

Examples

{
graph <- erdos.renyi.game(100, 0.2)
get_influence(graph=graph, nodes=V(graph)[1:10], test_method="RESILIENCE")
}

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