# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('hideSelectedEdges.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork(cw, 'grid')
selectEdges (cw, 'B (synthetic lethal) C')
hideSelectedEdges (cw)
# unhideAll (cw) # makes the edges appear again
# previously, Cytoscape required that you render these edges,
# and redo the layout, so that they are visible again.
# This is no longer required.
Run the code above in your browser using DataLab