Learn R Programming

RedeR (version 1.20.0)

deleteEdges: Remove edges from RedeR graphs.

Description

Method to remove edges between nodes in an active RedeR session.

Usage

deleteEdges(obj, edges)

Arguments

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

Value

Removes the specified edges from 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)
#   deleteEdges(rdp, c("n1","n3","n1","n7") )
#   updateGraph(rdp)
# ## End(Not run)  

Run the code above in your browser using DataLab