Invert the node selection, i.e. select all nodes that were not selected and deselect all nodes that were selected.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
## Not run: # first, delete existing windows to save memory: deleteAllWindows(CytoscapeConnection()) cw <- CytoscapeWindow ('invertNodeSelection demo', graph=makeSimpleGraph()) displayGraph (cw) layoutNetwork (cw, 'force-directed') invertNodeSelection (cw) # all nodes should be selected, since none were before invertNodeSelection (cw) # no node should be selected, since all were before selectNodes (cw, 'A') invertNodeSelection (cw) # only B and C should be selected ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.