# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('selectEdges.test', graph=makeSimpleGraph())
displayGraph (cw); layoutNetwork(cw); redraw (cw)
clearSelection (cw)
selectEdges (cw, c ("A (phosphorylates) B", "B (synthetic lethal) C"))
getSelectedEdges (cw)
Run the code above in your browser using DataLab