cw<- CytoscapeWindow ('clearSelection.test', graph=makeSimpleGraph())
displayGraph (cw)
selectNodes (cw, 'A')
print (getSelectedNodeCount (cw)) # should be 1
clearSelection (cw)
print (getSelectedNodeCount (cw)) # should be 0
Run the code above in your browser using DataLab