# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('setDefaultEdgeSourceArrowColor test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork(cw, 'force-directed')
setDefaultEdgeSourceArrowColor (cw, '#F0F0F0')
setEdgeSourceArrowShapeDirect (cw, c('A (phosphorylates) B', 'B (synthetic lethal) C'), 'DIAMOND')
# redraw (cw) --> not required anymore
Run the code above in your browser using DataLab