setArrowDirection {RedeR} | R Documentation |
Method to set edge attribute 'arrow direction' in active RedeR sessions.
setArrowDirection(obj, nodeA, nodeB, direction)
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> |
Sets edge attribute <integer>
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.
Mauro Castro
# 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)