cw <- new.CytoscapeWindow ('invertNodeSelection demo', graph=makeSimpleGraph())
# all nodes should be selected, since none were before
selectNodes (cw, 'A')
invertNodeSelection (cw)
redraw (cw)
# a richer test will be to programmatically select nodes, but that
# does not work yet (pshannon, 13 jan 2011)
Run the code above in your browser using DataLab