NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Subgraph Frequencies: Mapping the Empirical and Extremal Geography of Large Graph Collections

Johan Ugander, Lars Backstrom, Jon Kleinberg

TL;DR

This paper proposes a "coordinate system" for large collections of small, dense graphs (like Facebook neighborhoods or groups) based on the frequencies of small induced subgraphs. The authors discover that real-world social graphs cluster around a one-dimensional "backbone" in this space, which they successfully model by adding a triadic closure parameter to a standard random walk graph model.

What Problem Does This Paper Address?

Traditional social network analysis often treats a platform like Facebook as a single, massive, sparse graph. However, many practical problems involve managing millions of small, dense sub-networks, such as a user's immediate friends (ego-networks), interest groups, or event attendees.

The authors address two main challenges:

  1. Representation: How do we define a domain-independent coordinate system to compare and understand these diverse collections of small graphs?
  2. Nature vs. Nurture in Graphs: When we observe that certain structures (like the "forbidden triad") are rare in social networks, is it because of human social behavior, or is it a fundamental mathematical constraint of all graphs?

Methods

The researchers represent each graph as a vector of subgraph frequencies (specifically for $k=3$ or $k=4$ nodes).

To explain the observed data, they introduce the Edge Formation Random Walk with Triadic Closure. This is a continuous-time Markov chain where:

  • Edges are added at a base rate $\gamma$ and deleted at rate $\delta$.
  • Crucially, edges that complete a triangle (triadic closure) are added at an additional rate $\lambda$.
  • The stationary distribution of this model (when $\lambda=0$) is equivalent to the classic Erdős-Rényi $G_{n,p}$ model, but with $\lambda > 0$, it accurately captures the "social" tendency to form triangles.

To define the boundaries of what is mathematically possible, they use extremal graph theory and graph homomorphisms. They formulate a linear program (LP) incorporating classical results like the Kruskal-Katona and Moon-Moser theorems to map the "feasible region" of the subgraph frequency space.

Figure 2: The state transitions diagram for our stochastic graph model with k = 4, where γ is the arbitrary edge formation rate, λ is the triadic closure formation rate, and δ is the edge elimination rate.

Datasets

The study utilizes three massive collections of anonymized, aggregated graphs from Facebook (as of October 2012):

  • Neighborhoods: The graph induced by a user's friends (excluding the user themselves).
  • Groups: Graphs induced by members of Facebook Groups.
  • Events: Graphs induced by confirmed "Yes" attendees of Facebook Events.

The analysis covers graphs of various sizes (50, 100, 200, and up to 1000 nodes).

Key Insights and Ideas

  • The 1D Backbone: Despite the high dimensionality of the subgraph space (an 11-simplex for $k=4$), real social graphs are remarkably concentrated along a one-dimensional curve.
  • Social vs. Graph Properties: The authors show that the "forbidden triad" (two friends who aren't friends with each other) isn't just socially discouraged; it has a non-trivial mathematical upper bound ($3/4$) in any graph. However, social graphs stay far away from this boundary, occupying a much narrower "socially feasible" region.
  • Triadic Closure is the Key: The simple addition of one parameter ($\lambda$) to account for triangle formation allows the model to track the empirical "backbone" of social graphs with high fidelity.
  • Structural Signatures of Audiences: Different types of social contexts (neighborhoods vs. groups) have distinct structural signatures. For example, open triads in ego-neighborhoods are significantly more prone to closing into triangles than those in groups or events.
3D visualization of 3-node subgraph frequencies, showing how different graph types (neighborhoods, groups, events) cluster along a specific curve.

Key Results

  • Model Fit: The triadic closure model provides a "striking fit" for the mean frequencies of 4-node subgraphs across different datasets, significantly outperforming the standard Erdős-Rényi model.
  • Classification: Using only 4-node subgraph frequencies as features, the authors could distinguish between neighborhood graphs and event graphs with 77% accuracy, even when the graphs had the same number of nodes and edges.
  • Density vs. Size: They identified specific "crossing points" where the relative density of different graph types flips. For instance, groups are denser than neighborhoods when they are small ($n < 400$), but become sparser as they grow larger.
Average edge density across different graph types as a function of size, revealing distinct structural behaviors for neighborhoods, groups, and events.

Limitations and Future Work

  • Undirected Graphs: The current framework is limited to undirected graphs. Extending this to directed graphs (e.g., Twitter followers) would be a natural next step.
  • Computational Complexity: While $k=3$ and $k=4$ are tractable, the dimensionality of the subgraph space grows extremely fast with $k$, making higher-order analysis difficult.
  • Sociological Depth: The model uses a very simple "social" mechanism (triadic closure). Future work could incorporate more complex sociological theories into the generative process.

Summary updated

BibTeX
@inproceedings{ugander2013subgraph,
  author = {Johan Ugander and Lars Backstrom and Jon Kleinberg},
  title = {{Subgraph Frequencies: Mapping the Empirical and Extremal Geography of Large Graph Collections}},
  booktitle = {The Web Conference},
  year = {2013},
  doi = {10.1145/2488388.2488502},
}
Figure