避免cytoscape.js中的边缘节点重叠 [英] Avoid edge-node overlapping in cytoscape.js
本文介绍了避免cytoscape.js中的边缘节点重叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用cytoscape.js创建图.我已将布局设置为网格".需要解决以下问题:原始图-
Created graph using cytoscape.js. I have set the layout to 'grid'. Need to resolve following problem: original graph-
从主机3到主机1以及从主机5到主机1都有边缘,从主机5到主机1的边缘与从主机3到主机1的边缘重叠.
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.
重叠的边缘应显示为:
该怎么做?谢谢!
推荐答案
这是图论中的一个研究问题.你可以
That's a research problem in graph theory. You can
(1)使用不同的布局或参数,或者
(1) use a different layout or parameters, or
(2)为您的特定用例开发一种布局,使其重叠较少,或者
(2) develop a layout with less overlap for your specific usecase, or
(3)发明和/或实现了新颖的避免边缘重叠的算法.
(3) invent and/or implement novel edge overlap avoidance algorithms.
这篇关于避免cytoscape.js中的边缘节点重叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文