Learn R Programming

RCy3 (version 1.2.0)

predictTimeToDisplayGraph: predictTimeToDisplayGraph

Description

Use simple heuristics and previously collected timing to predict the length of time that will be required to send the R graph across the CyREST wire to Cytoscape.

Usage

predictTimeToDisplayGraph(obj)

Arguments

obj
a CytoscapeWindowClass object.

Value

Time in seconds.

See Also

CytoscapeWindow

Examples

Run this code
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('predictTimeToDisplayGraph.test', graph=makeSimpleGraph(), 
                             collectTimings=TRUE)
  message (paste ('estimated time: ', predictTimeToDisplayGraph (cw)))
  displayGraph (cw)
  layoutNetwork(cw, 'force-directed')

Run the code above in your browser using DataLab