Learn R Programming

ProNet (version 1.0.0)

assemble: Operation of networks

Description

Operation of networks including assemble them into a whole one, find their intersection, difference or complementer.

Usage

assemble(..., mode = c("union", "intersection", "difference", "complementer"))

Arguments

...
A list of igraph objects.
mode
Operation mode, possible values are union, intersection, difference, and complementer.

Value

An integrated igraph object.

Examples

Run this code
g1<-graph.ring(10)
g2<-graph.tree(10,mode="undirected")
assemble(g1,g2,mode="union")
assemble(g1,g2,mode="intersection")
assemble(g1,g2,mode="difference")
assemble(g1,mode="complementer")

Run the code above in your browser using DataLab