setGraph: setGraph

Description Usage Arguments Value Author(s) Examples

Description

Assigns the supplied graph object to the appropriate slot in the specified CytoscapeWindow object.

Usage

1
setGraph(obj, graph)

Arguments

obj

a CytoscapeWindowClass object.

graph

a graph object.

Value

The modified CytoscapeWindow object.

Author(s)

Paul Shannon

Examples

1
2
3
4
  cw <- new.CytoscapeWindow ('setGraph.test')  # an empty graph is created by default
  graph <- makeSimpleGraph ()
  setGraph (cw, graph)
  print (length (nodes (getGraph (cw))))

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