window.name = 'demo.getNodeAttribute'
cw = new.CytoscapeWindow (window.name, graph=makeSimpleGraph ())
displayGraph (cw)
redraw (cw)
layoutNetwork(cw)
count.B = getNodeAttribute (cw, "B", 'count')
Run the code above in your browser using DataLab