Description Usage Arguments Value Author(s) Examples
Assigns the supplied graph object to the appropriate slot in the specified CytoscapeWindow object.
1 | setGraph(obj, graph)
|
obj |
a |
graph |
a |
The modified CytoscapeWindow object.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.