Graph visualization at scale: strategies that work

We’re often asked about graph visualization at scale. It’s a common belief that if a few nodes can generate some insight, a few thousand nodes will generate lots of insight. That’s not automatically the case. Many huge graphs are too densely connected to be usefully visualized in one go.

In this blog, we’ll explore some proven strategies to help you visualize graphs at scale in a meaningful way.

Graph visualization at scale

Here’s a graph with 20,000 nodes and 20,000 links.

A randomly-generated large-scale graph visualization of 20,000 nodes and 20,000 links
A randomly-generated large-scale graph visualization of 20,000 nodes and 20,000 links

Although the powerful graph layout does a good job of highlighting the overall structure, the amount of insight we can get from this chart is limited. It demonstrates the four main challenges of graph visualization at scale:

1. Limited pixels – your computer monitor has a limited number of screen pixels. The more nodes and links you try to cram into a chart, the less you’ll be able to learn about them.

2. Limited human brainpower – the human brain is an incredible thing, but most adults struggle to store more than 7 things in their short-term memory at once, making it almost impossible to interpret a chart with 40,000 items.

3. Graph hairball – in a big graph dataset, the number of links increases exponentially with nodes. Eventually, you’ll get such a densely connected graph that it’s beyond the help of any automated layout.

4. Limited computer processing – while processors and graphics rendering technologies are getting more and more powerful, it’s still the case that bigger graphs will mean reduced performance – with slower layouts and a laggy user experience.

There are two ways to get around these challenges.

The ultimate guide to graph visualization

Everything you need to start building effective graph visualizations

Download the white paper

Reduce graph density

Before tackling the scale of this graph, we should first look to reduce its density. This means taking away anything that’s cluttering the chart unnecessarily.

Aggregate your data

The obvious starting point for decluttering your data is to remove or merge duplicate and unneeded nodes.

Normally this happens on the back-end of your application, where database queries can tidy away millions of unnecessary data points in seconds. But you can also give users some front-end functionality to merge duplicates that materialize during the investigation process.

Aggregating data by combining nodes

Simplifying the graph data model

It’s tempting to use the same data model in your back-end and in your visualization, but this is rarely the best approach for your users.

Take this insurance fraud example. Initially, we’re loading all the data related to a case – policies, claims, claimants, incidents, repair garages, etc. In the second view we remove all the intermediates nodes and connections, leaving only claimants and garages.

Simplifying the data model removes chart clutter to reveal insight

If the end-user only needs to understand relationships between claimants and garages, the second graph view is much more effective.

Combine nodes

Combos are visual groupings of nodes and links. They can be opened, closed and nested, giving a really powerful way to tidy up charts.

They’re also an example of the second strategy for visualizing graph data at scale.

Combine nodes to reduce clutter without losing nodes

Show sub-sections of the graph

Now we’ve tackled graph density, we can start exploring the data in a meaningful way.

Just as combos can help users tidy noisy charts, they also let users explore graphs on-demand, digging deeper into datasets.

Graph filtering

Graph filtering is another great example of this, giving users the ability to add or remove data from their view. One handy technique is to present users with an empty chart, and allow them to add data iteratively as required:

Start with an empty chart, and bring data in on demand

Social network centrality measures

You could also consider combining filters with social network analysis centrality measures. These algorithms identify the most important nodes in a graph, based on their relative connectivity.

This information reveals connections and sub-graphs most likely to be of interest. One example of this is kCores – repeatedly filtering nodes from the chart by their degree centrality, until we’re left just with highly connected clusters of nodes:

Removing nodes from a chart based on their connectivity, revealing a single densely connected core

What if I really need to see a huge graph?

Despite everything we’ve said above, it can sometimes be useful to visualize a graph at scale before digging into specific details.

In these cases, you should make sure your visualization tool harnesses modern rendering technology and layouts optimized for performance.

There are some visual tricks you can deploy too. Link gradients make graph clusters more visible from a distance, and you can adapt your node, link and labeling styles based on zoom level.

Adaptive styling makes sure your graph looks good at any zoom level

If you’re analyzing time-based data, consider creating a timeline visualization with a heatmap view. In this example, the timeline aggregates hundreds of thousands of terror events into a heatmap.

As we zoom in, the heatmap transitions smoothly to a more detailed view

Finally, try to ensure your solution degrades gracefully too. Reassure users with a loading screen or progress bar when performing a heavy process.

A loading screen reassures users that their graph is coming
A loading screen reassures users that their graph is coming

Try it for yourself

Looking for a way to perform graph visualization at scale?

We’ve built three data visualization toolkits, optimized for your biggest graph datasets. Request a trial to get started.

The ultimate guide to graph visualization

Everything you need to start building effective graph visualizations

The ultimate guide to graph visualization

Download the white paper

This post was originally published some time ago. It’s still popular, so we’ve updated it with fresh content to keep it useful and relevant.

How can we help you?

Request trial

Ready to start?

Request a free trial

Learn more

Want to learn more?

Read our white papers


Looking for success stories?

Browse our case studies

Registered in England and Wales with Company Number 07625370 | VAT Number 113 1740 61
6-8 Hills Road, Cambridge, CB2 1JP. All material © Cambridge Intelligence 2024.
Read our Privacy Policy.