window.name = 'demo.deleteEdgeAttribute'
cw = new.CytoscapeWindow (window.name, graph=makeSimpleGraph ())
setDefaultEdgeLineWidth (cw, 5);
displayGraph (cw)
redraw (cw)
layoutNetwork(cw)
print (paste ("before: ", getEdgeAttributeNames (cw)))
deleteEdgeAttribute (cw, 'score')
print (paste ("after: ", getEdgeAttributeNames (cw)))
Run the code above in your browser using DataLab