addCyEdge: addCyEdge

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
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.

Author(s)

Paul Shannon

See Also

sendEdgeAttributesDirect addCyNode

Examples

1
2
3
4
5
6
7
  window.name <- 'demo addCyEdge'
  cw <- new.CytoscapeWindow (window.name, graph=makeSimpleGraph ())
  displayGraph (cw)
  directed = TRUE
  addCyEdge (cw, 'A', 'B', 'synthetic rescue', directed)
  redraw (cw)
  layoutNetwork(cw)

RCytoscape documentation built on Nov. 17, 2017, 10:52 a.m.