# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
# create a CytoscapeWindowClass object by calling the constructor
c2 <- CytoscapeWindow ('cwc demo', makeSimpleGraph ())
# delete the window and then recreate it
deleteAllWindows(CytoscapeConnection())
createWindow(c2)
Run the code above in your browser using DataLab