getNodes,RCyjs-method {RCyjs} | R Documentation

## getNodes

### Description

`getNodes` returns a data.frame, one row per node, providing id and (if present) name and label columns

### Usage

    ## S4 method for signature 'RCyjs'
    getNodes(obj, which = "all")

### Arguments

`obj` | an RCyjs instance
`which` | a character string, either "all", "visible" or "hidden"

### Details

Every node is guaranteed to have an "id" attribute. Becuase "name" and "label" are commonly used as well, they are returned as columns in the data.frame if present

### Value

a data.frame with at least and "id" column

### Examples

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

[Package RCyjs version 2.4.0 Index]