Learn R Programming

RCy3 (version 1.2.0)

getAllNodes: getAllNodes

Description

Retrieve the identifiers of all the nodes in the current graph - a list of strings.

Usage

getAllNodes(obj)

Arguments

obj
a CytoscapeWindowClass object.

Value

A list of character strings. Note that node names are returned -- their original and primary identifiers -- and that these may be different from the node labels that you see when you look at the graph in Cytoscape.

Examples

Run this code
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('getAllNodes.test', graph=makeSimpleGraph())
  displayGraph (cw)
  print (getAllNodes (cw))
    # [1] "A" "B" "C"

Run the code above in your browser using DataLab