Cohesion Metrics

Since the Stevens–Myers–Constantine taxonomy of 1974, cohesion has been measured through structural proxies: method–attribute access overlap, connected components of the call graph, data-slice token sharing, and normalized densities. This paper surveys the 24 major cohesion metrics in the literature and shows that every single one measures a structural coupling relation, not cohesion as defined by a modularization principle. The underlying input to every metric is a coupling graph — method pairs that share fields, elements that share data tokens, execution traces — and what distinguishes “cohesion” metrics from classical coupling metrics (CBO, RFC, MPC) is not the data but the scope: coupling metrics count edges that cross module boundaries, while “cohesion” metrics count edges that stay inside. Both families examine the same graph; they differ only in which partition of the edge set they report. The paper catalogs each metric, identifies the coupling relation it extracts and the transformation it applies, and demonstrates that none captures the property it claims to measure. The finding is definitional, not pragmatic: structural scores remain useful as screening heuristics and change predictors, but they cannot be interpreted as measures of principled cohesion.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-07-30
DOI
https://doi.org/10.5281/zenodo.21703227
Primary Topic
Data Visualization and Analytics
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Cohesion Metrics

Yannick Loth
Zenodo (CERN European Organization for Nuclear Research)
Data Visualization and Analytics
preprint

Cohesion Metrics

Yannick Loth
preprint en

Abstract

Since the Stevens–Myers–Constantine taxonomy of 1974, cohesion has been measured through structural proxies: method–attribute access overlap, connected components of the call graph, data-slice token sharing, and normalized densities. This paper surveys the 24 major cohesion metrics in the literature and shows that every single one measures a structural coupling relation, not cohesion as defined by a modularization principle. The underlying input to every metric is a coupling graph — method pairs that share fields, elements that share data tokens, execution traces — and what distinguishes “cohesion” metrics from classical coupling metrics (CBO, RFC, MPC) is not the data but the scope: coupling metrics count edges that cross module boundaries, while “cohesion” metrics count edges that stay inside. Both families examine the same graph; they differ only in which partition of the edge set they report. The paper catalogs each metric, identifies the coupling relation it extracts and the transformation it applies, and demonstrates that none captures the property it claims to measure. The finding is definitional, not pragmatic: structural scores remain useful as screening heuristics and change predictors, but they cannot be interpreted as measures of principled cohesion.

Zenodo (CERN European Organization for Nuclear Research)
Data Visualization and Analytics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.