Cytoscape.js的可扩展性 [英] Scalability of Cytoscape.js

查看:105
本文介绍了Cytoscape.js的可扩展性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个11MB的JSON图形文件,边缘大约45K,73K节点没有 x,y位置,我想用BFS布局显示这个图形。我正在使用promise / deferred来加载文件。我无法让Cytoscape在chrome上显示此图表。所以:

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. I am using promise/deferred to load the file. I haven't been able get Cytoscape to display this graph on chrome. So:


  1. 是否有一些显示大图的特殊技巧?

  2. 使用cytoscape.js显示的最大图表是什么?

  3. 如果cytoscape.js不起作用,还有其他JS框架会适用于大型图表?


推荐答案

我们在预定义的5.4 MB JSON文件中显示图表在不同浏览器上的坐标,性能卓越。有没有预先计算坐标的特定原因(例如在Cytoscape桌面中)?

We display a graph from a 5.4 MB JSON file with predefined coordinates on different browsers with great performance. Is there a specific reason for not precalculating the coordinates (e.g. in Cytoscape desktop)?

要提高渲染性能:


  • 使用haystack edge

  • 为节点和边提供min-zoom-font-size

  • 隐藏非选择的边缘标签

  • 使用批次进行一系列操作

  • use haystack edges
  • provide "min-zoomed-font-size" for nodes and edges
  • hide non-selected edge labels
  • use batches for series of operations

这篇关于Cytoscape.js的可扩展性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆