voterank | R Documentation |
VoteRank algorithm for identifying a set of influential spreaders in complex networks.
voterank( g, r, display = F, display_layout = layout_nicely(g), display_label = T )
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. |
Vector of r
vertices identified as spreaders.
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)
library(igraphdata) data(karate) voterank(karate, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.