addGraph,RCyjs-method {RCyjs} | R Documentation

## addGraph

### Description

`addGraph` send these nodes and edges (with attributes) to RCyjs for display

### Usage

    ## S4 method for signature 'RCyjs'
    addGraph(obj, graph)

### Arguments

`obj` | an RCyjs instance
`graph` | a graphNEL

### Details

This version transmits a graph (nodes, edges and attributes) to the browser by writing the data to a file, and sending that filename to be read in the browser by javascript.

### Value

nothing

### Examples

    if(interactive()){
      rcy <- RCyjs(title="rcyjs demo", graph=g)
      g <- simpleDemoGraph()
      setGraph(rcy, g)
      }

[Package RCyjs version 2.4.0 Index]