Learn R Programming

ITNr (version 0.3.0)

get.backbone: get.backbone

Description

This function extracts the backbone of a network

Usage

get.backbone(G, alpha, directed = TRUE)

Arguments

G

igraph network

alpha

Significance level

directed

Default is TRUE

Value

Backbone of the network

References

Serrano, M. <U+00C1>., Bogu<U+00F1><U+00E1>, M. and Vespignani, A. (2009) Extracting the multiscale backbone of complex weighted networks, Proceedings of the National Academy of Sciences, 106(16), pp. 6483<U+2013>6488.

Examples

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab