getSelectedNodeCount: getSelectedNodeCount

Description Usage Arguments Value Author(s) Examples

Description

Returns the number of node currently selected.

Usage

1

Arguments

obj

a CytoscapeWindowClass object.

Value

An integer.

Author(s)

Paul Shannon

Examples

1
2
3
4
5
6
7
8
  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

RCytoscape documentation built on Nov. 17, 2017, 10:52 a.m.