Learn R Programming

RedeR (version 1.20.0)

addEdgeBetweenContainers: Add edges between containers.

Description

Method to add edges between RedeR containers. This method adds non-nested assignments, in contrast to the default behavior that builds nested associations to-and-from containers.

Usage

addEdgeBetweenContainers(obj, containerA, containerB )

Arguments

obj
Object of RedPort Class.
containerA
containerB

Value

Add graph objects.

See Also

RedPort

Examples

Run this code

rdp <- RedPort('MyPort') 
el<-matrix(c('n1','n2','n3','n4'), ncol=2, byrow=TRUE)
g <- graph.edgelist(el)

## Not run: 
# 
#   calld(rdp)
#   addGraph( rdp, g, layout.kamada.kawai(g) )
#   nestNodes( rdp, c('n1','n2') )
#   nestNodes( rdp, c("n3","n4") ) 
#   addEdgeBetweenContainers(rdp, "N0", "N1")
#   updateGraph(rdp)
# ## End(Not run)  

Run the code above in your browser using DataLab