Description Usage Arguments Value Author(s) See Also Examples
This function deletes all the selected nodes in Cytoscape. Edges originating or terminating in these nodes will also be deleted. The nodes and edges will still exist in the corresponding R graph until you explicitly delete them there as well.
1 | deleteSelectedNodes(obj)
|
obj |
a |
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
selectNodes deleteSelectedEdges
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('deleteSelectedNodes.test', graph=makeSimpleGraph())
displayGraph (cw)
redraw (cw)
layoutNetwork(cw, 'force-directed')
print (nodes (cw@graph))
# [1] "A" "B" "C"
selectNodes (cw, "B")
deleteSelectedNodes (cw)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.