setGraphR Documentation

setGraph

Description

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

Usage

setGraph(obj, graph)

Arguments

obj a CytoscapeWindowClass object.
graph a graph object.

Value

The modified CytoscapeWindow object.

Author(s)

Paul Shannon

Examples

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