Learn R Programming

RedeR (version 1.20.0)

addEdges: Add edges to RedeR graphs.

Description

Add edges to an active RedeR session.

Usage

addEdges(obj, edges)

Arguments

obj
Object of RedPort Class.
edges
Edge sequence as an array .

Value

Adds the specified edges to the graph.

See Also

RedPort

Examples

Run this code
rdp <- RedPort('MyPort') 
edges<-c("n1","n2","n1","n3","n1","n4","n1","n5","n1","n6","n1","n7")

## Not run: 
# 
#   calld(rdp)
#   addEdges(rdp, edges)  
#   updateGraph(rdp)
# ## End(Not run)  

Run the code above in your browser using DataLab