View source: R/influence_maximization.R
influence | R Documentation |
Mine the most influential nodes in given graph
influence( graph, budget = 1, prob = 0.5, steps = 1, optimal_solution = FALSE, test_method = c("RESILIENCE", "INFLUENCE_LT", "INFLUENCE_IC"), heuristic = c("GREEDY", "PAGERANK", "COLLECTIVE_INFLUENCE", "CORENESS", "CENTRALITY", "ADAPTIVE_CENTRALITY"), centrality_method = c("DEGREE", "ECCENTRICITY", "AVERAGE_DISTANCE", "BARYCENTER", "BETWEENNESS", "BOTTLENECK", "CENTROID", "CLOSENESS", "CLUSTERRANK", "COMMUNITY_BETWEENNESS", "COMMUNITY_CENTRALITY", "CROSS_CLIQUE", "CURRENTFLOW_CLOSENESS", "DECAY", "EDGE_PERCOLATION", "EIGENVECTOR", "ENTROPY", "FREEMAN_CLOSENESS", "GEODESIC_K_PATH", "HUBBELL", "KATZ", "LAPLACIAN", "LATORA_CLOSENESS", "LEADERRANK", "LEVERAGE", "LINCENT", "LOBBY", "MARKOV", "MAX_NEIGHBORHOOD_COMPONENT", "MAX_NEIGHBORHOOD_DENSITY", "PAIRWISE_DISCONNECTIVITY", "RADIALITY", "RESIDUAL_CLOSENESS", "SALSA", "SEMILOCAL", "TOPOLOGICAL_COEFFICIENT", "VITALITY_CLOSENESS"), parallel = TRUE, logging = 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 |
steps |
is the time steps for which, the diffusion process should run. Provide NULL for exhaustive run. Default value is 1 |
optimal_solution |
should be TRUE if influential nodes are to be derived using optimal algorithm. Caution! This is the slowest apporach |
test_method |
specifies the method to measure influence. Value MUST be "RESILIENCE", "INFLUENCE_IC" or "INFLUENCE_LT" |
heuristic |
specifies the heuristic method used for influence calculation. Required only when optimal_solution is FALSE |
centrality_method |
is the centrality algorithm to use when heuristic is "CENTRALITY" or "ADAPTIVE_CENTRALITY". Value must be "DEGREE", "BETWEENNESS", "CLOSENESS" or "EIGENVECTOR" |
parallel |
when true, executes the funtion using multiple CPU cores. Default value is TRUE |
logging |
when true, a complete log is stored in output.log file |
object containing: 1. Vector of influential nodes. 2. Measure of influence. 3. Elapsed time in seconds.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.