voterank: VoteRank

View source: R/voterank.R

voterankR Documentation

VoteRank

Description

VoteRank algorithm for identifying a set of influential spreaders in complex networks.

Usage

voterank(
  g,
  r,
  display = F,
  display_layout = layout_nicely(g),
  display_label = T
)

Arguments

g

Graph object.

r

Number of spreaders.

display

Whether to display graph, default FALSE.

display_layout

Custom layout of graph, dafault layout_nicely.

display_label

Whether to display vertex.label, default TRUE.

Value

Vector of r vertices identified as spreaders.

References

Csardi G, Nepusz T: The igraph software package for complex network research, InterJournal, Complex Systems 1695. 2006. https://igraph.org

Zhang, JX., Chen, DB., Dong, Q. et al.: Identifying a set of influential spreaders in complex networks. Sci Rep 6, 27823 (2016). https://doi.org/10.1038/srep27823 (https://www.nature.com/articles/srep27823.pdf)

Examples

library(igraphdata)

data(karate)
voterank(karate, 2)


viliamzigo/voterank documentation built on May 5, 2022, 9:54 a.m.