setArrowDirection: Set arrow direction.

Description Usage Arguments Value Note Author(s) See Also Examples

Description

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

Usage

1
setArrowDirection(obj, nodeA, nodeB, direction)

Arguments

obj

Object of RedPort Class.

nodeA

Name <string>

nodeB

Name <string>

direction

Options: 0 (A-B), 1 (A->B), 2 (A<-B) or 3 (A<->B) <integer>

Value

Sets edge attribute <integer>

Note

The direction is set according to the edge order in the app (i.e. the edge list available inside RedeR). So, if a request for direction "1" places nodeA='B' and nodeB='A', then the direction will appear as A->B in the app.

Author(s)

Mauro Castro

See Also

RedPort

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Initialize igraph
library(igraph)

edges<-c("n1","n2","n1","n3","n1","n4","n1","n5","n1","n6","n1","n7")

## Not run: 

  rdp <- RedPort() 
  calld(rdp)
  addEdges(rdp, edges)
  setArrowDirection(rdp, "n1", "n2", 2)
  updateGraph(rdp)

## End(Not run)  

RedeR documentation built on Nov. 8, 2020, 7:45 p.m.