Network graphWho is connected to whom.
Dots for people or things, lines for every link. Friends pull together, so groups, hubs and bridges appear on their own.
- Answers How are things connected?
- Your data one line per link, from and to
- Items about 5 to 100
- Links about 5 to 300
- Excel and Power BI a custom visual
- Group 1
- Group 2
What is a network graph?
A network graph (also a node-link diagram) draws items as dots (nodes) and links as lines (edges) between them. A layout pulls linked dots together and pushes the others apart, so groups form on their own, the hubs with many links sit in the middle of them, and the few bridges between groups stand out.
A club of 12 people and who is friends with whom. Two circles of friends form, Cat has the most friends, and Joe is the only link between the two circles.
Why use a network graph?
Because links are a shape, and a list of pairs hides it.
- Groups show. Items that link to each other cluster together.
- Hubs show. The dots with the most links stand out.
- Bridges show. The few links between groups are easy to find.
- Any kind of link. People, web pages, tables in a model, parts of a system.
How does a network graph work?
Four steps turn a list of pairs into a picture.
- Step 1 of 4Lines for linksEach pair is a line; the layout pulls linked dots together and pushes the rest apart.
- Step 2 of 4NamesEach dot gets its name.
- Step 3 of 4Size by linksA dot with more links is drawn bigger.
- Step 4 of 4Colour by groupItems that link mostly to each other share a colour.
- Group 1
- Group 2
The layout is found by trying: lines act like springs and dots push each other away, until the picture settles.
What are the parts of a network graph?
Four parts, and each one has a job.
- Group 1
- Group 2
- Nodeone item, as big as its number of links
- Linka line between two linked items
- Hubthe item with the most links
- Groupitems that link mostly to each other
How do you read a network graph?
Three looks, in this order.
- Find the groupsTwo circles of friends, each in its own colour.
- Group 1
- Group 2
- Find the hubCat has five friends, more than anyone.
- Group 1
- Group 2
- Find the bridgeJoe is the only link between the two circles: without Joe, they fall apart.
- Group 1
- Group 2
What kinds of network graph are there?
The same club, three ways.
- Kind 1By groupEach group in its own colour.
- Group 1
- Group 2
- Kind 2One colourThe shape alone.
- Kind 3One person litMax's links stay strong, the rest fade.
- Group 1
- Group 2
Links can have a direction (who follows whom, drawn with arrowheads) and a weight (how often, drawn as thicker lines). Data models are networks too: in a star schema the fact table is the hub.
When should you use a network graph?
When the links are the story, not the values.
- items link to each other
- groups, hubs or bridges matter
- there are about 5 to 100 items
- the overall shape matters more than each link
- there are hundreds of items (an adjacency matrix)
- links have amounts that flow (a Sankey diagram)
- the links form a tree (a tree diagram)
Network graph or adjacency matrix?
Dots and lines for the shape, a grid for every link.
The adjacency matrix lists every possible pair, so no link hides and it stays readable with hundreds of items. The network graph shows the shape: the two circles and Joe between them are seen at once, but with many items the lines turn into a knot.
How do you make a network graph?
A list of links, and a tool with a layout.
The data is a table with a from column and a to column, one row per link, plus an optional weight. Excel has no network chart. In Power BI, the Network Navigator or Force-Directed Graph custom visuals from AppSource take the two columns (custom visuals in Power BI). Power BI's own model view draws your tables and their relationships as a network.
What goes wrong with network graphs?
The most common mistake, and its fix: a hairball.
| Mistake | Why it hurts | Fix |
|---|---|---|
| Too many items | A grey knot | Filter, group, or an adjacency matrix |
| Reading meaning into position | The layout is found, not measured | Read links and groups, not distances |
| Every dot the same size | Hubs hide | Size by number of links |
| Labels on every dot | Text covers the picture | Label the hubs and the ones in the story |
| A different layout each time | Readers lose their bearings | A fixed start, so it settles the same way |
Every chart for “How are things connected?”
Read on, step by step.
Does it fit your data? Try it.
Paste your table into Chart Compass, say what the chart should show, and see the charts that fit, drawn with your own numbers. It runs in your browser, so the data stays with you.