deleteSelectedNodesR Documentation

deleteSelectedNodes

Description

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

Usage

deleteSelectedNodes(obj)

Arguments

obj a CytoscapeWindowClass object.

Value

None.

Author(s)

Paul Shannon

See Also

selectNodes deleteSelectedEdges

Examples

  cw <- new.CytoscapeWindow ('deleteSelectedNodes.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork (cw, 'jgraph-spring') 
  print (nodes (cw@graph))
  selectNodes (cw, "B")
  deleteSelectedNodes (cw)