setEdgeStyle,RCyjs-method {RCyjs} | R Documentation

## setEdgeStyle

### Description

`setEdgeStyle` plain & fast (haystack) vs fancy & slower (bezier)

### Usage

    ## S4 method for signature 'RCyjs'
    setEdgeStyle(obj, mode = c("bezier", "haystack"))

### Arguments

`obj` | an RCyjs instance
`mode` | a character string, either "bezier" or "haystack"

### Details

cytoscape.js offers two kinds of edge rendering - a tradeoff in richess and speed edge target decorations (arrows, tee, etc) are only rendered with the "bezier" style

### Value

no return value

### Examples

    if(interactive()){
       g <- simpleDemoGraph()
       rcy <- RCyjs(title="rcyjs demo", graph=g)
       layout(rcy, "cose")
       fit(rcy, 100)
       loadStyleFile(rcy, system.file(package="RCyjs", "extdata", "sampleStyle2.js"))
       setEdgeStyle(rcy, "bezier")
       redraw(rcy)
       }

[Package RCyjs version 2.4.0 Index]