clearSelection,RCyjs-method {RCyjs} | R Documentation

## clearSelection

### Description

`clearSelection` deselect all selected nodes, all selected edges, or both

### Usage

    ## S4 method for signature 'RCyjs'
    clearSelection(obj, which = "both")

### Arguments

`obj` | an RCyjs object
`which` | a character string: "both" (the default), "nodes" or "edges"

### Value

no return value

### Examples

    if(interactive()){
       rcy <- RCyjs(title="rcyjs demo", graph=simpleDemoGraph())
       selectNodes(rcy, c("A", "B"))
       clearSelection(rcy)
       }

[Package RCyjs version 2.10.0 Index]