# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('setNodeAttributesDirect.test', graph=makeSimpleGraph())
sendNodes(cw)
setNodeAttributesDirect (cw, 'count', 'int', c ('A', 'B', 'C'), c (4, 8, 12))
Run the code above in your browser using DataLab