Weighted Degree Centrality

Machine Learning
Introduced by
Barrat, A.; Barthélemy, M.; Pastor-Satorras, R.; Vespignani, A.
Year
2004
Type
Centrality measure for weighted networks
Family
Network science

What does it do?

Weighted degree centrality, also called node strength, extends degree centrality to networks whose edges carry numeric weights.

Rather than counting a node's connections, it sums the weights of all edges incident to that node, so a single score reflects both how many ties a node has and how strong they are.

The intuition behind the method

In an unweighted network, degree counts how many neighbours a node has, but a researcher who emails ten colleagues every week is not equivalent to one who emails each colleague once a year. Weighted degree centrality makes this distinction by summing the actual strength of each connection. A high score marks a node that maintains strong or frequent ties, not only many ties, which makes it a useful proxy for activity or load in weighted social, biological, or infrastructure networks.

History

Barrat, Barthélemy, Pastor-Satorras, and Vespignani (2004), in the Proceedings of the National Academy of Sciences paper 'The architecture of complex weighted networks', studied weighted networks using two examples: the scientific collaboration network and the world-wide air-transportation network. They assigned to each edge a weight proportional to the intensity or capacity of the connection, and defined metrics combining weighted and topological observables to characterise the heterogeneity of the strength of edges and vertices. The vertex-strength quantity analysed in that work is the basis of the node-strength measure described on this page.

When to use it

Use weighted degree centrality when the network has meaningful numeric edge weights, such as collaboration frequency, communication volume, trade value, or physical flow, and you want to identify the most active nodes without the complexity of path-based measures. It is a sensible starting point when binary degree would discard variation in tie strength. Do not use it when edge weights are nominal or ordinal categories, unless they are first converted to meaningful numeric scores. Prefer betweenness or eigenvector centrality when the position of a node in the overall structure matters more than its raw throughput. If the network is unweighted, standard degree centrality answers the same question.

Limitations and considerations

  • Strength is a linear sum of weights, so a few very large weights can dominate a node's score when the weight distribution is highly skewed.
  • The measure ignores the global position of a node: a peripheral node with heavy ties can outscore a topologically central node with lighter ties.
  • In directed networks, the single strength score ignores direction unless in-strength and out-strength are computed separately.
  • It carries no information about clustering, brokerage, or indirect reach through the network.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Cheap to compute: the cost grows with the number of edges m, and each node's strength depends only on its own incident edges, so values can be computed independently for each node.
  • Easy to interpret: the score is the total weight of a node's ties, in the same units as the edge weights.
  • Separates nodes with equal degree but different tie strengths, which binary degree centrality cannot do.
  • Available in common tools, including NetworkX, igraph (in both R and Python), and Gephi.
  • Read alongside unweighted degree, it shows whether high-degree nodes also carry heavy traffic.

Applications

  • Identifying the most active or influential actors in weighted social and collaboration networks.
  • Detecting major hubs in transportation and trade networks by total flow or volume.
  • Ranking brain regions by the strength of their connections in connectome studies.
  • Measuring the productivity of authors in weighted co-authorship networks.
  • Finding key species in ecological food webs weighted by interaction frequency or flow.
  • Screening node importance before applying more expensive path-based centrality measures.

How it works

How it works

1

Represent the network as a weighted graph G = (V, E, W), where nodes V are actors or entities, edges E are ties, and the weight matrix W assigns a positive real value w_ij to each edge. The weight may encode frequency, intensity, capacity, cost, or another quantity that is meaningful in the domain. Negative weights require careful pre-processing or an alternative formulation.

2

For each node i, sum the weights of all edges connecting it to its neighbours: s_i = sum of w_ij over all j in the neighbourhood of i. This quantity is the node strength defined by Barrat et al. (2004), and it generalises binary degree to the weighted case: if every weight equals one, s_i reduces to the number of neighbours. This single-sum formula applies to undirected networks. In a directed network the sum is ambiguous, so strength is computed separately as in-strength (sum of incoming edge weights) and out-strength (sum of outgoing edge weights). Self-loops must be handled by an explicit, stated convention, because including or excluding their weight changes the strength of the affected nodes.

Formula
s_i = \sum_{j \in \mathcal{N}(i)} w_{ij}
3

Divide each node's strength by the sum of all node strengths in the network, as the step formula specifies. This formula assumes an undirected network. Because each edge weight contributes to the strength of both of its endpoints, this denominator is a total of strength across nodes rather than the total edge weight itself. With non-negative weights, the normalised scores lie between 0 and 1 and sum to 1, which allows comparison across networks with different overall weight. Dividing by the total of strength is a convention adopted here for comparability; it is not part of the original definition of node strength in Barrat et al. (2004). A normalised score describes a node's share of total strength, not an absolute measure of importance. For directed networks, normalise in-strength and out-strength separately, each by the sum of the corresponding quantity over all nodes.

Formula
s_i^{\text{norm}} = \frac{s_i}{\sum_k s_k}
4

Sort nodes by their normalised strength and identify the highest-scoring ones. In social networks these are often the most active actors, in trade networks the largest hubs, and in co-authorship networks the most frequent collaborators. Compare the ranking with unweighted degree: nodes whose rank rises under strength have heavier-than-average ties, while nodes whose rank falls have many weak ties.

Common pitfalls

  • Comparing raw weights across datasets without standardisation, or without a log-transformation when the weights are heavily right-skewed, so that a few extreme ties drive the ranking.
  • Collapsing in-strength and out-strength into one score in a directed network without justifying why direction can be dropped.
  • Reporting strength without binary degree, which hides whether a high score comes from many weak ties or a few strong ones.
  • Including or excluding self-loop weights without stating the choice, which changes the strength of the affected nodes.
  • Treating missing ties as zero weight, which systematically lowers the strength of nodes that were poorly observed.

Frequently asked questions

How does weighted degree centrality differ from standard degree centrality?

Standard degree centrality counts the number of edges incident to a node and treats all connections equally. Weighted degree centrality sums the edge weights, so a node with one very strong tie can outscore a node with several weak ties. Reporting both shows whether a node's prominence comes from the number of its connections or their intensity.

Should I log-transform edge weights before computing node strength?

When weights span several orders of magnitude, a log-transformation stops a small number of extreme ties from dominating the scores. Inspect the weight distribution first, and apply a transformation if it is heavily right-skewed. Document the choice, because it changes the ranking.

How do I handle directed networks?

Compute in-strength (sum of incoming edge weights) and out-strength (sum of outgoing edge weights) separately, rather than one combined score that discards directional information. The two capture different roles: in a lending network, weighted in-degree identifies the most active borrowers, and weighted out-degree identifies the most active lenders. Interpret each measure in terms of the role your question concerns, and report both.

What software can compute weighted degree centrality?

In NetworkX, weighted degree is obtained with G.degree(weight='weight'). igraph provides a strength function in both R and Python, and Gephi offers a weighted degree column. For very large sparse networks, graph-tool or GraphBLAS-based implementations may be worth considering, depending on the workflow.

When should I prefer betweenness centrality over weighted degree centrality?

Use betweenness centrality when the question concerns which nodes control flow along shortest paths, such as brokers or bridges. Use weighted degree centrality when the question concerns the raw activity or throughput at each node. The two measure different things and are often informative when reported together.

Related methods

Sources

  1. Barrat, A., Barthélemy, M., Pastor-Satorras, R., & Vespignani, A. (2004). The architecture of complex weighted networks. Proceedings of the National Academy of Sciences, 101(11), 3747–3752.

    Open DOI reference
  2. Newman, M. E. J. (2010). Networks: An Introduction. Oxford University Press.

    ISBN: 978-0-19-920665-0