Learn R Programming

RCy3 (version 1.2.0)

deleteSelectedEdges: deleteSelectedEdges

Description

This function removes all selected edges in Cytoscape. These edges will still exist in the corresponding R graph until you delete them there as well.

Usage

deleteSelectedEdges(obj)

Arguments

obj
a CytoscapeWindowClass object.

Value

None.

See Also

selectEdges cy2.edge.names deleteSelectedNodes

Examples

Run this code
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('deleteSelectedEdges.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'force-directed') 
  print (cy2.edge.names (cw@graph))   # find out Cytoscape's names for  these edges
  selectEdges (cw, "B (synthetic lethal) C")
  deleteSelectedEdges (cw)
  redraw (cw)

Run the code above in your browser using DataLab