Abstract
The study of triangles in graphs is a standard tool in network analysis, leading to measures such as transitivity, i.e., the fraction of paths of length 2 that participate in triangles. Real-world networks are often directed, and it can be difficult to "measure" this network structure meaningfully. We propose a collection of directed closure values for measuring triangles in directed graphs in a way that is analogous to transitivity in an undirected graph. Our study of these values reveals much information about directed triadic closure. For instance, we immediately see that reciprocal edges have a high propensity to participate in triangles. We also observe striking similarities between the triadic closure patterns of different web and social networks. We perform mathematical and empirical analysis showing that directed configuration models that preserve reciprocity cannot capture the triadic closure patterns of real networks.
Introduction
In network science, counting triangles is a classic way to measure clustering and transitivity—the "friend of my friend is my friend" phenomenon. In undirected graphs, this is easily quantified by the global clustering coefficient. However, most real-world networks, such as the web, social media, and communication networks, are directed and often feature a high percentage of reciprocal edges (where node A points to B, and B points back to A).
Historically, measuring triangle structure in directed graphs has been difficult. Researchers either ignored edge direction, ignored reciprocity, or relied on the "triad census," which can be hard to interpret across massive datasets. This paper addresses this gap by proposing a systematic, scalable suite of metrics that generalizes undirected transitivity to directed graphs, allowing researchers to see exactly how different types of directed paths form triangles.
A Taxonomy for Directed Triadic Closure
The authors treat graphs as having two distinct types of edges: directed (one-way) and reciprocal (two-way). They categorize all possible paths of length 2 into six wedge types and all possible triangles into seven triangle types.
The core metric introduced is the Directed Closure Value ($\kappa_{\psi, \tau}$). This calculates the fraction of a specific wedge type ($\psi$) that "closes" to form a specific triangle type ($\tau$). There are 15 possible non-zero closure values based on which wedges can geometrically form which triangles.
Key Insights from Empirical Analysis
The authors evaluated these metrics on 11 massive network datasets, including web graphs (Google, Stanford) and social networks (Slashdot, Epinions, LiveJournal). Several key patterns emerged:
- Heterogeneity of Closure: Not all wedges are created equal. For example, "in" wedges (A -> B <- C) are typically the most common structure (often >90% of all wedges), but they almost never close into triangles. Conversely, "out+" and "reciprocal" wedges are rare but close at very high rates.
- Reciprocity as a Catalyst: The presence of a two-way tie acts as a massive multiplier for triangle formation. On average, a wedge with zero reciprocal edges has only a 3% chance of closing. If one edge is reciprocal, the chance jumps to 23%; if both are reciprocal, it reaches 38%.
- Pure Cycles are Rare: Pure directed cycles (A -> B -> C -> A) make up less than 6% of triangles. If a cycle exists, it almost always involves reciprocal edges.
The Failure of Configuration Models
To prove these findings aren't just side effects of node popularity, the authors compared empirical closure rates against a reciprocal configuration model. This mathematical null model generates random graphs that perfectly preserve the in-degree, out-degree, and reciprocal-degree of every node.
The results showed that the reciprocal configuration model drastically underestimates directed closure rates, often by orders of magnitude. Z-scores for directed closures were astronomically high, frequently exceeding 1000 standard deviations. This proves that local node degrees cannot explain triadic closure; there are higher-order, systemic dynamics driving network formation that current models fail to capture.
Conclusion
Directed closure values provide a nuanced and interpretable way to measure transitivity in directed networks. The discovery that reciprocity is a primary driver of triangle formation, combined with the failure of degree-preserving null models, suggests that new generative models are needed to accurately reflect the structural properties of real-world directed networks.
Summary updated