# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('setNodeBorderWidthRule.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork (cw, 'force-directed')
node.attribute.values <- c('kinase', 'transcription factor', 'glycoprotein')
line.widths <- c(0, 8, 16)
setNodeBorderWidthRule (cw, 'type', node.attribute.values, line.widths)
Run the code above in your browser using DataLab