How many nodes at most Cytoscape js can support?

2,615 views
Skip to first unread message

sl yls

unread,
Jun 3, 2014, 12:16:58 PM6/3/14
to cytoscap...@googlegroups.com
Hi I want to visualize a large data, I am wondering how many nodes at most Cytoscape.js can support now? Thanks.

Keiichiro Ono

unread,
Jun 3, 2014, 5:00:53 PM6/3/14
to cytoscap...@googlegroups.com
Hi.

The picture attached is created by cytoscape.js, and it has over 6k edges.  You can render this size of network, but it is too slow for interactive use.

I'm testing with mid to large size networks using cytoscape.js now, and the following is a view with few hundreds of objects:


I had no problem to use it on my desktop machine.  It's a bit slow when selecting nodes, but I think it's because of my AngularJS code, not cytoscape.js.

So, if "large" means order of hundreds, it should be OK.  But if you have thousands or more, rendering everything at once is not a good idea.

Kei




2014-06-03 9:16 GMT-07:00 sl yls <slyl...@gmail.com>:
Hi I want to visualize a large data, I am wondering how many nodes at most Cytoscape.js can support now? Thanks.

--
You received this message because you are subscribed to the Google Groups "cytoscape-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-disc...@googlegroups.com.
To post to this group, send email to cytoscap...@googlegroups.com.
Visit this group at http://groups.google.com/group/cytoscape-discuss.
For more options, visit https://groups.google.com/d/optout.



--
===================================

Keiichiro Ono

===================================
cyjs-6k.png

Max Franz

unread,
Jun 4, 2014, 10:04:22 AM6/4/14
to cytoscap...@googlegroups.com
It all depends on how you use it.  Cytoscape.js supports lots of features, and especially some of the visual styles can be expensive.  There are some notes in the documentation on this (e.g. use haystack edges):

Certainly you can visualise thousands of nodes if you use performant options and your code itself is performant.  On my machine with v2.2.x I’ve tuned the options to get 8000-10,000 elements on screen, but that was the limit before performance was a problem.  The upcoming v2.3.x and onward will continue to have better and better performance (and more features too).

If you were to try to visualise the graph with SVG or the DOM, you’d run into performance problems much sooner — so be careful what technology you use.

Angular 1.x tends to be able to handle on the order of 2000-4000 model elements (not necessarily graph elements) before its performance becomes an issue.  Angular 2.x should have better performance, but we’ll have to wait and see.

Whether users will understand large graphs is another question.  That can be addressed with use of layout, extensions/plugins (to focus on subsets of the graph at a time), and what elements your app itself puts in the graph at any one time.  It’s a complicated problem.

-Max
Attachments:
- cyjs-6k.png

sl yls

unread,
Jun 4, 2014, 1:39:40 PM6/4/14
to cytoscap...@googlegroups.com
Nice reply! Thanks for your feedback!

You received this message because you are subscribed to a topic in the Google Groups "cytoscape-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cytoscape-discuss/R87BVdN-kXQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cytoscape-disc...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages