Degree and Clustering Coefficient
Degree
Definition: = number of edges incident to node . For undirected graphs, this is simply the count of neighbours. For directed graphs, separate into in-degree () and out-degree ().
Interpretation: the simplest measure of a node’s local connectivity or “importance”. Nodes with high degree are local hubs. Degree alone does not tell you whether the neighbours are connected to each other — that requires the clustering coefficient.
Local Clustering Coefficient
Definition: the fraction of a node’s neighbours that are connected to each other.
where:
- = number of edges between the neighbours of node .
- = total number of possible edges between neighbours (the number of unique unordered pairs of neighbours).
Interpretation:
- : none of ‘s neighbours are connected to each other. is like the centre of a star.
- : all of ‘s neighbours form a complete subgraph (a clique). Every pair of neighbours is directly connected.
- For a node with , the denominator is 0, so is undefined. By convention, for such nodes (or they are excluded from the average).
What it measures: the degree of triadic closure around node . High means ‘s friends are also friends with each other — characteristic of close-knit social groups. Low means connects otherwise disconnected people — characteristic of brokers or connectors.
Worked Example: 2025 Q8 Graph
Graph edges: A–B, A–E, B–C, B–F, C–D, D–F, D–H, F–G, G–H, C–F.
Node A
(neighbours: B and E).
Edges between neighbours : is there a B–E edge? No.
A’s neighbours are not connected to each other. A is like the centre of a “V” shape spanning B and E.
Node C
(neighbours: B, D, F).
Edges among :
- B–F: yes (edge exists).
- B–D: no (no direct edge).
- D–F: yes (edge exists).
C’s neighbours are well-connected: 2 out of 3 possible edges exist. Only the B–D edge is missing. This reflects that C sits within a fairly tight social cluster.
Node H
(neighbours: D and G).
Edges between neighbours : is there a D–G edge? No (D connects to H and F; G connects to H and F; D and G are not directly connected).
H is at the end of the D–H–G branch with no closure between its two neighbours.
Measuring Overall Clustering
To measure the degree to which nodes form clusters in a network, compute the average local clustering coefficient over all nodes with :
There are other measures (global clustering coefficient, transitivity ratio), but the local clustering coefficient is the one required for MLRD exam answers. Social networks have high (often 0.1–0.5); technological and information networks have low .
Summary
| Measure | Formula | Node A | Node C | Node H |
|---|---|---|---|---|
| Degree | Count of incident edges | 2 | 3 | 2 |
| Edges between neighbours | 0 | 2 | 0 | |
| Possible pairs | 1 | 3 | 1 | |
| 0 | 0 | |||
| Interpretation | — | Star centre | Partial clique | Leaf |
Past paper questions: y2025p3q8