getSelectedNodesR Documentation

getSelectedNodes

Description

Retrieve the identifiers of all the nodes selected in the current graph.

Usage

getSelectedNodes(obj)

Arguments

obj a CytoscapeWindowClass object.

Value

A list of character strings.

Author(s)

Paul Shannon

Examples

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