setArrowDirection {RedeR} | R Documentation

## 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 <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

    # 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)

[Package RedeR version 1.38.0 Index]