# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cy <- CytoscapeConnection ()
cw <- CytoscapeWindow ('getWindowID.test', graph=makeSimpleGraph())
displayGraph (cw)
getWindowID (cy, 'getWindowID.test')
Run the code above in your browser using DataLab