selectFirstNeighborsOfSelectedNodes: selectFirstNeighborsOfSelectedNodes

Description Usage Arguments Value Author(s) See Also Examples

Description

Expand the selection by adding the first neighbors, in the Cytosape network, of the nodes currently selected (again, in the Cytoscape network). The R graph is unchanged

Usage

1
selectFirstNeighborsOfSelectedNodes (obj)

Arguments

obj

a CytoscapeWindowClass object.

Value

None.

Author(s)

Paul Shannon

See Also

clearSelection getSelectedNodeCount getSelectedNodes hideSelectedNodes getFirstNeighbors

Examples

1
2
3
4
5
6
7
8
  cw <- new.CytoscapeWindow ('selectFirstNeighborsOfSelecteNodes.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw)
  clearSelection (cw)
  selectNodes (cw, 'A')
  selectFirstNeighborsOfSelectedNodes (cw)
  print (sort (getSelectedNodes (cw)))
    # [1] "A" "B" "C"

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