# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
window.name = 'demo.deleteNodeAttribute'
cw = CytoscapeWindow (window.name, graph=makeSimpleGraph ())
displayGraph (cw)
redraw (cw)
layoutNetwork(cw)
# before:
print (getNodeAttributeNames (cw))
# [1] "name" "type" "lfc" "label" "count"
deleteNodeAttribute (cw, 'count')
# after:
print (getNodeAttributeNames (cw))
# [1] "name" "type" "lfc" "label"
Run the code above in your browser using DataLab