| getMetaweb | R Documentation |
Computation of the binary metaweb from a list of graph
getMetaweb(gList)
gList |
A |
This function computes the metaweb from a list of graph. It computes the union (in the sense of graph theory) of the set of graphs.
getMetaweb returns an object of class igraph.
Authors: Stephane Dray, Vincent Miele, Marc Ohlmann, Wilfried Thuiller Maintainer: Wilfried Thuiller <wilfried.thuiller@univ-grenoble-alpes.fr>
Marc Ohlmann, Vincent Miele, Stephane Dray, Loic Chalmandrier, Louise O'Connor & Wilfried Thuiller, Diversity indices for ecological networks: a unifying framework using Hill numbers. Ecology Letters (2019) <doi:10.1111/ele.13221>
# Generating a set of Erdos-Renyi graphs
library(igraph)
gList <- c()
for(i in 1:4){
graphLocal <- erdos.renyi.game(60, type = 'gnp', p.or.m=0.1, directed=TRUE)
V(graphLocal)$name <- as.character(1:60)
gList <- c(gList, list(graphLocal))
}
names(gList) <- c("A","B","C","D")
## building the metaweb
graphMetaweb <- getMetaweb(gList)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.