# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
window.name = 'demo.getNodeAttribute'
cw = CytoscapeWindow (window.name, graph=makeSimpleGraph ())
displayGraph (cw)
redraw (cw)
layoutNetwork(cw)
count.B = getNodeAttribute (cw, "B", 'count')
count.B
# [1] 30
Run the code above in your browser using DataLab