deleteSelectedNodes

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
  # 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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.