Skip to contents

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

Examples


# Read a vector of files
#
if (FALSE) { # \dontrun{

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"))

} # }