简体   繁体   English

Cytoscape.js中的数千个节点

[英]Thousands of nodes in Cytoscape.js

I have a graph with 30.000 nodes and 24.000 edges approximately. 我有一个带有30.000个节点和大约24.000个边的图形。 Using cytoscape.js , the browser never finishes loadind data... When trying a graph with 1.500 nodes and 1.700 edges, everything's OK. 使用cytoscape.js ,浏览器永远不会完成loadind数据...当尝试使用1.500个节点和1.700个边的图形时,一切正常。

So, I know the problem is the number of nodes/edges to load. 因此,我知道问题在于要加载的节点/边缘的数量。 How can I deal with this problem? 我该如何解决这个问题?

You're going to have trouble rendering graphs of that size using any library. 您将无法使用任何库来渲染该大小的图形。 You can load all of the elements into the graph, but you should only draw a subset for performance. 您可以将所有元素加载到图中,但是您应该只绘制一个子集以提高性能。 You can do this by hiding elements in the stylesheet : http://js.cytoscape.org/#style/visibility 您可以通过隐藏样式表中的元素来做到这一点: http : //js.cytoscape.org/#style/visibility

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

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