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)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

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

## End(Not run)

tmuetze/Bioconductor_RCy3_the_new_RCytoscape documentation built on May 31, 2019, 4:39 p.m.