最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

cytoscape.js - Is there a way for a node to have multiple connection to its edges? - Stack Overflow

programmeradmin0浏览0评论

In my application, nodes contain a list of text values, and I want the edges which relate to those values to connect to the node such that they point directly at that part of the node

          +-----------+
          | Name      |
          +-----------+
 ------->o| A         |
          +-----------+
 ------->o| B         |
          +-----------+

I haven't been able to find a way to do this, searching around online and after reading the docs, and would like to know if its possible. I also perused the available extensions without any luck. Thanks

In my application, nodes contain a list of text values, and I want the edges which relate to those values to connect to the node such that they point directly at that part of the node

          +-----------+
          | Name      |
          +-----------+
 ------->o| A         |
          +-----------+
 ------->o| B         |
          +-----------+

I haven't been able to find a way to do this, searching around online and after reading the docs, and would like to know if its possible. I also perused the available extensions without any luck. Thanks

Share asked Nov 19, 2024 at 19:55 David DeanDavid Dean 11 bronze badge 1
  • Please provide enough code so others can better understand or reproduce the problem. – Community Bot Commented Nov 20, 2024 at 10:55
Add a comment  | 

1 Answer 1

Reset to default 0

Maybe use compound nodes so that these "text values" are itself nodes?

https://js.cytoscape./#notation/compound-nodes

btw: Or maybe try reactflow - there you create custom nodes with handles and you connect those handles not nodes. It is complicated to do it otherwise, that's why I'm trying to use cytoscape.js instead :)

发布评论

评论列表(0)

  1. 暂无评论