getSelectedNodeCountR Documentation

getSelectedNodeCount

Description

Returns the number of node currently selected.

Usage

getSelectedNodeCount(obj)

Arguments

obj a CytoscapeWindowClass object.

Value

An integer.

Author(s)

Paul Shannon

Examples

  cw <- new.CytoscapeWindow ('getSelectedNodeCount.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'jgraph-spring')
  redraw (cw)
    # in Cytoscape, interactively select two nodes, or
  selectNodes (cw, c ('A','B'))
  getSelectedNodeCount (cw)
  # [1] 2