英文:
Cytoscape java: Draw edges all to way to the center of nodes
问题
以下是翻译好的内容:
我尝试在 macOS(版本 10.15.7)上使用 Cytoscape Java(版本 3.8.1)绘制我的网络图,但无法使边缘完全绘制到节点中心,因此它们最终看起来是完整的。目前它们看起来被截断了。
由于所有的结果通常都涉及到姊妹项目 Cytoscape.js
,所以搜索起来特别困难。
以下是我可视化的当前状态:
以下是在绘图软件中手动完成的期望状态:
非常感谢任何建议。
英文:
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:
This is the desired state done up manually in a paint software:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论