Description Usage Arguments Value Note Author(s) See Also Examples
Method to set edge attribute 'arrow direction' in active RedeR sessions.
1 | 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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.