deleteGraph,RCyjs-method {RCyjs} | R Documentation

## deleteGraph

### Description

`deleteGraph` Remove all nodes and edges, the elements of the current graph.

### Usage

    ## S4 method for signature 'RCyjs'
    deleteGraph(obj)

### Arguments

`obj` | RCyjs instance

### Details

This method will remove any previous graph in the browser

### Value

nothing

### See Also

`addGraph` `setGraph`

### Examples

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

[Package RCyjs version 2.9.3 Index]