View source: R/getBackbone_function.R
get.backbone | R Documentation |
This function extracts the backbone of a network
get.backbone(G, alpha, directed = TRUE)
G |
igraph network |
alpha |
Significance level |
directed |
Default is TRUE |
Backbone of the network
Serrano, M. Á., Boguñá, M. and Vespignani, A. (2009) Extracting the multiscale backbone of complex weighted networks, Proceedings of the National Academy of Sciences, 106(16), pp. 6483–6488.
require(igraph)
##Create a random (directed) network
gs<-erdos.renyi.game(50,0.2,directed = TRUE)
##Add edge weights to the network
E(gs)$weight<-runif(ecount(gs), 0, 1)
##Extract backbone at 0.05 significance level
backbone<-get.backbone(gs,0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.