Avoid edge-node overlapping in cytoscape.js

元气小坏坏 提交于 2021-01-27 04:26:48

问题


Created graph using cytoscape.js. I have set the layout to 'grid'. Need to resolve following problem: original graph-

enter image description here

There is edge from Host3 to Host1 as well as from Host5 to host1,Edge from Host 5 to Host 1 overlapping the edge from Host3 to Host1.

Overlapping edge should appear like:

enter image description here

How to do it? Thanks !


回答1:


That's a research problem in graph theory. You can

(1) use a different layout or parameters, or

(2) develop a layout with less overlap for your specific usecase, or

(3) invent and/or implement novel edge overlap avoidance algorithms.



来源:https://stackoverflow.com/questions/28540158/avoid-edge-node-overlapping-in-cytoscape-js

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!