Learn R Programming

RedeR (version 1.20.0)

setArrowDirection: Set arrow direction.

Description

Method to set edge attribute 'arrow direction' in active RedeR sessions.

Usage

setArrowDirection(obj, nodeA, nodeB, direction)

Arguments

obj
Object of RedPort Class.
nodeA
Name
nodeB
Name
direction
Options: 0 (A-B), 1 (A->B), 2 (A<-B) or 3 (A<->B)

Value

Sets edge attribute

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)
#   setArrowDirection(rdp, "n1", "n2", 2)
#   updateGraph(rdp)
# ## End(Not run)  

Run the code above in your browser using DataLab