Learn R Programming

RCy3 (version 1.2.0)

getNodeCount: getNodeCount

Description

Reports the number of nodes in the current graph.

Usage

getNodeCount(obj)

Arguments

obj
a CytoscapeWindowClass object.

Value

A list of character strings.

Examples

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

  cw <- CytoscapeWindow ('getNodeCount.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'force-directed')
  redraw (cw)
  getNodeCount (cw)
  # [1] 3

Run the code above in your browser using DataLab