| setGraph | R Documentation |
Assigns the supplied graph object to the appropriate slot in the specified CytoscapeWindow object.
setGraph(obj, graph)
obj |
a CytoscapeWindowClass object. |
graph |
a graph object. |
The modified CytoscapeWindow object.
Paul Shannon
cw <- new.CytoscapeWindow ('setGraph.test') # an empty graph is created by default
graph <- makeSimpleGraph ()
setGraph (cw, graph)
print (length (nodes (getGraph (cw))))