简体   繁体   English

Cytoscape.js的可伸缩性

[英]Scalability of Cytoscape.js

I have a 11MB JSON graph file with about 45K edges and 73K nodes without x, y locations, and I want to display this graph using the BFS layout. 我有一个11MB的JSON图形文件,带有大约4.5万个边和73K个节点, 没有 x,y位置,我想使用BFS布局显示此图形。 I am using promise/deferred to load the file. 我正在使用promise / deferred加载文件。 I haven't been able get Cytoscape to display this graph on chrome. 我无法让Cytoscape在chrome上显示此图形。 So: 所以:

  1. Are there some special techniques for displaying large graphs? 是否有一些用于显示大图的特殊技术?
  2. What is the largest graph anyone has displayed using cytoscape.js? 任何人使用cytoscape.js显示的最大图是什么?
  3. If cytoscape.js won't work are there other JS frameworks that will work for large graphs? 如果cytoscape.js无法正常工作,还有其他适用于大型图形的JS框架吗?

You are limited by the performance of the browsers themselves. 您受到浏览器本身性能的限制。 Cytoscape.js uses several techniques to optimise rendering performance, but you'll still hit the ceiling of the browser's performance. Cytoscape.js使用多种技术来优化渲染性能,但是您仍然会达到浏览器性能的顶峰。

I don't think you'll find any browser tech today (July 2015) that supports rendering such large datasets. 我认为您(2015年7月)不会找到支持渲染如此大的数据集的浏览器技术。

We display a graph from a 5.4 MB JSON file with predefined coordinates on different browsers with great performance. 我们在不同的浏览器上以出色的性能显示来自5.4 MB JSON文件的图形,该图形具有预定义的坐标。 Is there a specific reason for not precalculating the coordinates (eg in Cytoscape desktop)? 是否存在不预先计算坐标的特定原因(例如,在Cytoscape桌面中)?

To increase rendering performance: 要提高渲染性能:

  • use haystack edges 使用干草堆边缘
  • provide "min-zoomed-font-size" for nodes and edges 提供节点和边缘的“最小缩放字体大小”
  • hide non-selected edge labels 隐藏未选择的边缘标签
  • use batches for series of operations 使用批处理进行一系列操作

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

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