deleteSelectedNodes: deleteSelectedNodes

Description Usage Arguments Value Author(s) See Also Examples

Description

This function deletes all the selected nodes in Cytoscape. Edges originating or terminating in these nodes will also be deleted. The nodes and edges will still exist in the corresponding R graph until you explicitly delete them there as well.

Usage

1

Arguments

obj

a CytoscapeWindowClass object.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

selectNodes deleteSelectedEdges

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('deleteSelectedNodes.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'force-directed') 
  print (nodes (cw@graph))
    # [1] "A" "B" "C"
  selectNodes (cw, "B")
  deleteSelectedNodes (cw)

## End(Not run)

RCy3 documentation built on May 31, 2017, 11:49 a.m.

Search within the RCy3 package
Search all R packages, documentation and source code