getNodes: getNodes

Description Usage Arguments Details Value Examples

Description

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

Usage

1
2
## 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

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

RCyjs documentation built on Nov. 8, 2020, 8:20 p.m.