Chapter 14 Performances

The graphTweets has already seen great performance improvements and can now build large graphs.

The sigmajs library needs some explanation, namely on layout, and renderers.

14.1 Renderers

The sigmajs package actually comes with three renderers out-of-the-box; canvas, the default, svg and webgl. svg makes for slightly nicer looking graphs but at performance costs so only use it for the smaller graphs. In contrast, webgl is extremely performant.

Let’s plot huge graph using webgl to demonstrate, below we graph 25,000 nodes.