13 Research methods, statistics, critical review and evidence-based practice13.13 Network analysis

13.13.4 Degree, centrality and network distances

3 min read1 figure

Written by Resident Doctor Committee · Published

Try it

Reading a network

Interactive

A network of depression and anxiety symptoms11 nodes and 17 edges, all in one connected piece, Poor sleep is selected, with 4 neighbours.1234567891011

A weight of 0.2 or more in either direction is kept.

Depression symptomsAnxiety symptoms
Nodes and edges
11 and 17
Density
31%Edges present out of all the edges possible.
Diameter
4 stepsThe longest of the shortest paths.
Average path length
2.20 steps
Connected pieces
1
Edges inside a community
88%
Degree of Poor sleep
4Edges it has.
Strength
0.89The sum of its edge weights, ignoring sign.
Closeness
0.63One over its average number of steps to the others.
Betweenness
0.54The share of shortest paths between other nodes that pass through it.
How far each node is from Poor sleep.
NodeStepsEdge weight
1. Low mood10.18
2. Loss of interest2No edge
3. Guilt2No edge
5. Fatigue10.35
6. Poor concentration2No edge
7. Appetite change2No edge
8. Worry2No edge
9. Feeling on edge10.16
10. Restlessness10.20
11. Irritability2No edge

The weights are partial correlations invented for teaching: each is the link between two symptoms with every other symptom held constant. Thicker lines are stronger links, and the dashed line is the one negative link. Distances count edges, not weights. Remove Poor sleep to see the network split in two, which is what a bridge symptom means.

An invented network of 11 depression and anxiety symptoms, coloured by community. Poor sleep has degree 4 but the highest closeness and betweenness, because it is the only bridge between the two communities. Tap Loss of interest and Feeling on edge to see which measure each one wins, then remove Poor sleep and watch the network split in two.

New in the 2027 syllabus

The College added this topic for exams from January 2027.

Degree and strength

  • Degree is the number of edges (lines) attached to a node in a simple undirected graph. An isolated node, with no edges, has degree zero.

  • In-degree and out-degree apply to a directed graph, where each edge points one way. In-degree counts incoming edges. Out-degree counts outgoing edges.

  • Normalised degree centrality divides a node's degree by n - 1, where n is the number of nodes in a simple graph.

  • Strength is the version usually used in symptom networks. It adds up the absolute weights of a node's connections. This separates a node with several weak associations from one with several strong ones.

Count the lines touching each node: the labels give degree, while the isolated node has no connections and therefore degree zero. Melchoir, CC BY-SA 4.0, via Wikimedia Commons

Centrality measures

Centrality measure

What gives a node a high value

Degree

Many direct connections

Strength

A large total of absolute connection weights

Closeness

Short shortest-path distances to the other nodes

Betweenness

Lying on a large share of the shortest paths between other pairs

Eigenvector

Connections to nodes that themselves score highly

Each measure answers a different question, so their rankings need not agree. For example, a node that bridges two groups can have high betweenness even when it has few direct connections.

Paths and diameter

  • A path is a route along edges that never visits the same node twice. In an unweighted graph, its length is the number of edges it crosses.

  • The shortest path between two nodes in an unweighted graph is the one that uses the fewest edges.

  • Closeness centrality, in a connected undirected graph, is the reciprocal (1 divided by the value) of the mean shortest-path distance from a node to all other nodes.

  • Network diameter is the longest of the shortest-path distances between pairs of nodes in a connected graph.

In a disconnected network some pairs of nodes cannot reach each other. To get a finite diameter you have to say which connected component you mean. Otherwise the diameter is undefined or treated as infinite.

Network density

Density is the proportion of possible edges that are actually present. It describes the whole network, not a single node.

  • A simple undirected graph with n nodes allows n x (n - 1) / 2 edges, so density = 2 x observed edges / [n x (n - 1)].

  • A simple directed graph allows n x (n - 1) edges, because an edge in each direction counts separately.

Worked example

A simple undirected graph has four nodes and the edges A-B, A-C, B-C and C-D.

Node

Direct neighbours

Degree

A

B, C

2

B

A, C

2

C

A, B, D

3

D

C

1

  1. There are four edges. The possible number is 4 x 3 / 2 = 6. So density = 4 / 6 = 0.67.

  2. C has degree 3, so its normalised degree centrality = 3 / (4 - 1) = 1.

  3. The shortest path from A to D is A-C-D, which has length 2. No pair is further apart, so the diameter is 2.

  4. C is one edge from every other node. Its mean distance is 1, so its closeness centrality is 1 / 1 = 1.

Interpreting symptom networks

  • Sampling uncertainty can change estimated edge weights and centrality rankings. Check how stable they are before reading anything into small differences between nodes.

  • High centrality in an observational symptom network does not show that a symptom causes others, or that it is the best target for treatment.

  • Weighted shortest paths need a stated rule for turning association strength into distance. Do not automatically treat a strong association as a long distance.