getNodeCountR Documentation

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.

Author(s)

Paul Shannon

Examples

  cw <- new.CytoscapeWindow ('getNodeCount.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'jgraph-spring')
  redraw (cw)
    # in Cytoscape, interactively select two nodes, or
  getNodeCount (cw)
  # [1] 3