Styling edges in Cytoscape.js for a Family Tree

你说的曾经没有我的故事 提交于 2020-01-03 01:35:07

问题


I have a Family Tree application that uses Django and I am trying to use http://js.cytoscape.org for the UI.

I would like to style edges between romantic partners like this:

http://www.eprintablecalendars.com/images/arts-and-crafts/family-tree.jpg

which is what you commonly see (the square-U).

I am completely new to Cytoscape.js, and haven't been able to find any answers in the docs or other threads.


回答1:


What you're describing is not edges but hyperedges. A hyperedge has multiple sources and/or targets. You can simulate hyperedge with intermediary nodes or in your case curve-style: segments in 2.5+.



来源:https://stackoverflow.com/questions/32960608/styling-edges-in-cytoscape-js-for-a-family-tree

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