How to highlight the path between two nodes in CYTOSCAPE JS

前端 未结 3 905
南方客
南方客 2020-12-19 14:45

i can create a graph using cytoscape js library . i am following the this tutorial and i implement like this.

CODE:

$(function(){ /         


        
3条回答
  •  爱一瞬间的悲伤
    2020-12-19 15:44

    I you want to highlight all the possible paths

    event.target- is the starting node

    event.target.successors().animate({
          style: { lineColor: 'red' }
    });
    

提交回复
热议问题