Learn R Programming

RCytoscape (version 1.22.0)

getSelectedEdges: getSelectedEdges

Description

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

Usage

getSelectedEdges(obj)

Arguments

obj
a CytoscapeWindowClass object.

Value

A list of character strings.

Examples

Run this code
  cw <- new.CytoscapeWindow ('getSelectedEdges.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'jgraph-spring')
  redraw (cw)
    # in Cytoscape, interactively select two edges
    # doesn't work yet:  selectEdges (cwe, "A (phosphorylates) B")
  getSelectedEdges (cw)

Run the code above in your browser using DataLab