# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
window.name = 'demo.getAllEdgeAttributes'
cw = CytoscapeWindow (window.name, graph=makeSimpleGraph ())
displayGraph (cw)
redraw (cw)
layoutNetwork(cw)
# get all attributes for all edges
tbl.eda = getAllEdgeAttributes (cw, onlySelectedEdges=FALSE)
tbl.eda
# edgeType source target score misc
# A|B phosphorylates A B 35 default misc
# B|C synthetic lethal B C -12 default misc
# C|A undefined C A 0 default misc
Run the code above in your browser using DataLab