i can create a graph using cytoscape js library . i am following the this tutorial and i implement like this.
cytoscape js
CODE:
$(function(){ /
I you want to highlight all the possible paths
event.target- is the starting node
event.target
event.target.successors().animate({ style: { lineColor: 'red' } });