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