getSelectedEdgeCount: getSelectedEdgeCount

Description Usage Arguments Value Author(s) Examples

Description

Returns the number of edge 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
 9
10
  cw <- new.CytoscapeWindow ('getSelectedEdgeCount.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'jgraph-spring')
  redraw (cw)
  clearSelection (cw)
  getSelectedEdgeCount (cw) # should be 0
    # in Cytoscape, interactively select an edge, or programmatically (doesn't work yet)
    # selectEdges (cwe, "A (phosphorylates) B")
  getSelectedEdgeCount (cw)
  # should be 1

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