简体   繁体   English

cytoscape.js在布局广度优先中添加节点

[英]cytoscape.js add node in layout breadthfirst

I start cy (layout=breathfirst) with a group of nodes and egdes. 我从一组节点和egdes开始cy(layout = breathfirst)。 cy calculate the tree-structure very well. cy很好地计算了树结构。 But if I add a node later, cy placed the node on position 0,0. 但是,如果稍后添加一个节点,则cy将节点放置在位置0,0上。 How I can inform cy to recalculate the tree structure? 如何通知cy重新计算树结构?

再次运行广度优先布局: http ://js.cytoscape.org/#cy.layout

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM