cw <- new.CytoscapeWindow ('saveNetwork.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork(cw, 'jgraph-spring')
redraw (cw)
#filename <- sprintf ('%s/%s', tempdir (), 'saveNetworkTest.gml')
#not sure if this will work at bioc
#saveNetwork (cw, filename)
#print (sprintf ('gml file exists? %s', file.exists (filename)))
Run the code above in your browser using DataLab