Cytoscape java: 将边缘绘制到节点中心

huangapple go评论58阅读模式
英文:

Cytoscape java: Draw edges all to way to the center of nodes

问题

以下是翻译好的内容:

我尝试在 macOS(版本 10.15.7)上使用 Cytoscape Java(版本 3.8.1)绘制我的网络图,但无法使边缘完全绘制到节点中心,因此它们最终看起来是完整的。目前它们看起来被截断了。

由于所有的结果通常都涉及到姊妹项目 Cytoscape.js,所以搜索起来特别困难。

以下是我可视化的当前状态:

Cytoscape java: 将边缘绘制到节点中心

以下是在绘图软件中手动完成的期望状态:

Cytoscape java: 将边缘绘制到节点中心

非常感谢任何建议。

英文:

I have tried to style my network graph in Cytoscape java (version 3.8.1) on macOS (version 10.15.7) but am unable to have edges drawn all the way to the center of the nodes, such as they end up appearing full. Right now they appear truncated.

It's especially hard to search for as all results usually concern the sister project Cytoscape.js.

This is the current state of my visualization:

Cytoscape java: 将边缘绘制到节点中心

This is the desired state done up manually in a paint software:

Cytoscape java: 将边缘绘制到节点中心

Thank you very much for any advice.

答案1

得分: 1

Cytoscape开发团队今天对这个问题进行了审查。出于几个原因,我们有意不将边缘绘制到中心,包括交互性能和半透明节点的使用情况(在这种情况下,边缘可能会在节点下面变得可见)。

一些解决方法:

  • 版本3.7.2具有圆形的端点,您可能会发现这更具吸引力,也可能不会。
  • 如果您使用圆形节点,端点更对称,您可能会发现这更具吸引力,也可能不会。
英文:

The Cytoscape dev team reviewed this issue today. We purposely do not draw edges to the center for a few reasons, including interactive performance and use cases with semi-transparent nodes (where the edges when then become visible under the nodes).

Some workarounds:

  • Version 3.7.2 had rounded ends, which you may or may not find more appealing
  • If you use circular nodes, the ends are more symmetrical, which you may or may not find more appealing

huangapple
  • 本文由 发表于 2020年10月19日 19:18:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/64426227.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定