在Cytoscape.js中为家谱样式化边缘 [英] Styling edges in Cytoscape.js for a Family Tree
问题描述
我有一个使用Django的Family Tree应用程序,我正在尝试使用 http://js.cytoscape.org
I have a Family Tree application that uses Django and I am trying to use http://js.cytoscape.org for the UI.
我想在浪漫伙伴之间设置边缘样式,
http://www.eprintablecalendars.com/ images / arts-and-crafts / family-tree.jpg
这是您通常看到的(方形U)。
which is what you commonly see (the square-U).
我对Cytoscape.js完全陌生,还无法在文档或其他线程中找到任何答案。
I am completely new to Cytoscape.js, and haven't been able to find any answers in the docs or other threads.
推荐答案
您所描述的不是边缘,而是超边。超边缘具有多个来源和/或目标。您可以使用中间节点来模拟hyperedge,或者在2.5+版本中使用曲线样式:分段
。
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+.
这篇关于在Cytoscape.js中为家谱样式化边缘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!