getNodes,RCyjs-method {RCyjs} | R Documentation |
getNodes
returns a data.frame, one row per node, providing id and (if present) name and
label columns
## S4 method for signature 'RCyjs' getNodes(obj, which = "all")
obj |
an RCyjs instance |
which |
a character string, either "all", "visible" or "hidden" |
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
a data.frame with at least and "id" column
if(interactive()){ rcy <- RCyjs(title="rcyjs demo", graph=simpleDemoGraph()) getNodes(rcy) }