# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('hideNodes.test', graph=makeSimpleGraph())
displayGraph(cw)
redraw (cw)
layoutNetwork(cw, 'force-directed')
saveLayout (cw, 'layout.tmp.RData')
hideNodes (cw, c ('A', 'B'))
unhideAll (cw)
restoreLayout (cw, 'layout.tmp.RData')
Run the code above in your browser using DataLab