# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('setNodeColorDirect.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork (cw, 'force-directed')
setNodeColorDirect (cw, 'A', '#880000')
setNodeColorDirect (cw, c('A', 'C'), c('#88FF00', '#880000'))
Run the code above in your browser using DataLab