cw <- new.CytoscapeWindow ('setNodeBorderWidthRule.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork(cw, 'jgraph-spring')
redraw (cw)
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