fromIgraphToMgraph: From multiple igraph objects to 'mgraph'

View source: R/readNetwork.r

fromIgraphToMgraphR Documentation

From multiple igraph objects to 'mgraph'

Description

This functions takes a list of igraph objects and convert it to a 'mgraph' object.

Usage

fromIgraphToMgraph(g, types)

Arguments

types

vector of types that represent the layers with the same length as mg

mg

list of 'igraph' objects

Value

class 'mgraph' object

See Also

readMultiplex()

Examples


# Read a vector of files
#
## Not run: 

fileName <- c(system.file("extdata",  package = "multiweb"))
dn <- list.files("inst/extdata",pattern = "^Kefi2015.*\\.txt$")
g <- readNetwork(dn,"inst/extdata", skipColumn = 2)
fromIgraphToMgraph(g,c("Negative","Positive","Antagonistic"))


## End(Not run)

lsaravia/EcoNetwork documentation built on Nov. 12, 2023, 5:34 p.m.