# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('restoreLayout.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork(cw, 'force-directed')
saveLayout (cw, 'layout.RData')
layoutNetwork(cw, 'isom')
restoreLayout (cw, 'layout.RData')
# you might need to adjust the zoom
Run the code above in your browser using DataLab