# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
window.name = 'demo.getEdgeAttribute'
cw = CytoscapeWindow (window.name, graph=makeSimpleGraph ())
setDefaultEdgeLineWidth (cw, 5);
displayGraph (cw)
redraw (cw)
layoutNetwork(cw)
score.bc = getEdgeAttribute (cw, "B (synthetic lethal) C", 'score')
print (paste ("should be -12: ", score.bc))
Run the code above in your browser using DataLab