Description Usage Arguments Value Note Author(s) See Also Examples
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.
1 | addEdgeBetweenContainers(obj, containerA, containerB )
|
obj |
Object of RedPort Class. |
containerA |
<string> |
containerB |
<string> |
Add graph objects.
Prior calling this method invoke RedeR application via XML-RPC server (i.e. 'calld').
Mauro Castro
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Initialize igraph
library(igraph)
el<-matrix(c('n1','n2','n3','n4'), ncol=2, byrow=TRUE)
g <- graph.edgelist(el)
## Not run:
rdp <- RedPort()
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.