Illustration image

Seeing Relationships: Why Graphs Matter in AI and Beyond

Graphs & Networks in the Age of AI

#graph #chart-types


This week I attended TDC São Paulo virtually. One talk that particularly caught my attention was by Fabiane Nardon, who discussed how structured context, RDF and ontologies can help LLMs reduce hallucinations.

If you haven’t come across RDF before, here’s the short version: it represents relationships as simple triples - subject → predicate → object.

For example:

Alice → knows → Bob

Computers can process these triples efficiently, and when enough of them are connected, they form a knowledge graph.

For machines, RDF is powerful. For humans, however, reading thousands of triples isn’t exactly intuitive. We quickly lose sight of the bigger picture.

That led me to an interesting thought: just as LLMs need structured context to reduce hallucinations, humans need visualization to avoid seeing relationships that aren’t really there.

And that’s where graphs come in.


What Is a Graph?

At its core, a graph is a representation of relationships.

A graph consists of:

Instead of looking at isolated data points, you see how everything is connected.

Social networks, transport routes, organizational structures are all examples of graph-based models. Edges, that is connections, can be directed or not.


Why Graphs Are So Useful

Humans are naturally good at spotting patterns visually.

Graphs make those patterns easier to see:

RDF and ontologies provide structured understanding for machines. Graphs provide a bird’s-eye view for humans.

Together, they make complex systems easier to understand.


Common Ways to Visualize Graphs

There are several approaches to representing graph data.

The classic approach: nodes are shown as dots and edges as connecting lines.

This works well for small and medium-sized networks, although larger graphs can become cluttered. Layout algorithms help determine where nodes and edges should be placed for better readability.

2. Matrix Representations

Instead of drawing connections, relationships are shown in a matrix where rows and columns represent nodes.

This avoids visual clutter and can scale better, but it is often less intuitive for people.

3. Implicit Representations

In these visualizations, relationships are implied by the position of elements rather than explicit links.

This approach works particularly well for hierarchical structures such as trees.


Where Graphs Create Value

Graphs are useful wherever relationships matter more than individual records.

Some examples include:


Tools Worth Exploring

If you’d like to experiment with graph visualizations, these are good starting points:


Listening to the discussion around RDF and ontologies felt familiar. Years ago, I worked with taxonomies and ontologies in enterprise search, and it is interesting to see these concepts reappear as building blocks in modern AI architectures.

Another session explored agentic GraphRAG. While the implementation differs from traditional knowledge graph approaches, the underlying idea is similar: use graph structures to better connect and retrieve information.

By understanding relationships rather than just matching text, graph-based RAG systems can often deliver more relevant results, improve information correlation, and help reduce hallucinations.

Technology evolves, but the challenge remains the same: making sense of complex information. Graphs continue to be one of the most effective ways to do exactly that.

Have you worked with graph visualizations before? If not, try taking a dataset you know well and sketching it as a graph - you may discover connections that were hidden before.


Want to learn more about data visualization?

➤ Download my checklist 10 Steps to Amazing Data Visualizations

eBook cover