Learn R Programming

RCy3 (version 1.2.0)

addCyEdge: addCyEdge

Description

Given a CytoscapeWindow containing a (possibly empty) graph, this method adds an edge. Edge attributes are added separately, via successive calls to sendEdgeAttributesDirect. The two nodes must already exist in the Cytoscape network.

Usage

addCyEdge(obj, sourceNode, targetNode, edgeType, directed)

Arguments

obj
a CytoscapeWindowClass object.
sourceNode
a character string object.
targetNode
a character string object.
edgeType
a character string object.
directed
a boolean object.

Value

None.

See Also

sendEdgeAttributesDirect addCyNode

Examples

Run this code
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())
  window.name <- 'demo addCyEdge'
  cw <- CytoscapeWindow (window.name, graph=makeSimpleGraph ())
  displayGraph (cw)
  layoutNetwork(cw)
  directed = TRUE
  addCyEdge (cw, 'A', 'B', 'synthetic rescue', directed)

Run the code above in your browser using DataLab