# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
window.name = 'demo.deleteEdgeAttribute'
cw = CytoscapeWindow (window.name, graph=makeSimpleGraph ())
setDefaultEdgeLineWidth (cw, 5);
displayGraph (cw)
redraw (cw)
layoutNetwork(cw)
# before:
print (getEdgeAttributeNames (cw))
# [1] "name" "interaction" "edgeType" "score" "misc"
deleteEdgeAttribute (cw, 'score')
# after
print (getEdgeAttributeNames (cw))
# [1] "name" "interaction" "edgeType" "misc"
Run the code above in your browser using DataLab