Learn R Programming

RCytoscape (version 1.22.0)

deleteSelectedEdges: deleteSelectedEdges

Description

In Cytoscape, remove all selected edges. 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
  cw <- new.CytoscapeWindow ('deleteSelectedEdges.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring') 
  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