A Scalable Generative Graph Model with Community Structure

Tamara G. Kolda, Ali Pinar, Todd D. Plantenga, C. Seshadhri · DOI

TL;DR

This paper introduces and details a scalable generative graph model called BTER (Block Two-Level Erdős-Rényi) that excels at capturing both the degree distribution and community structure (via clustering coefficients) of real-world networks. The authors provide a practical, parallelizable implementation that can generate massive graphs efficiently, making it a valuable tool for benchmarking and understanding complex network phenomena.

What Problem Does This Paper Address?

The explosion of network data from social media, the internet, and various other sources presents a significant challenge: we lack realistic and scalable models to generate synthetic graphs that accurately mimic the properties of these real-world networks. Existing models often struggle to simultaneously capture key characteristics like the heavy-tailed degree distribution (where a few nodes have many connections and most have few) and the presence of community structures, which are crucial for understanding network behavior. This gap hinders the development and evaluation of network analysis algorithms and tools.

Methods

The core of this paper is the detailed explanation and implementation of the BTER model. BTER works in two main phases:

  1. Phase 1 (Intra-block links): Nodes are first partitioned into "affinity blocks," which are intended to represent communities. Within each block, edges are generated using a dense Erdős-Rényi model. The connectivity within these blocks is carefully chosen to match the desired clustering coefficients for nodes of a given degree. This phase is crucial for embedding community structure.
  2. Phase 2 (Inter-block links): After Phase 1, the "excess degrees" of nodes (the remaining connections needed to meet their target degree) are calculated. A Chung-Lu model is then used to generate edges between these affinity blocks, ensuring the overall degree distribution is met.

A key contribution is the development of a scalable, parallel implementation using Hadoop MapReduce. This implementation focuses on independent edge generation, allowing for efficient parallelization. The authors also address practical challenges like handling degree-1 nodes and managing edge duplication. They propose specific methods for calculating the necessary parameters for both phases, directly from the desired degree distribution and clustering coefficient profiles, avoiding iterative optimization.

Datasets

The paper evaluates BTER on several real-world datasets:

  • Small Datasets:
    • ca-AstroPh (collaboration network)
    • soc-Epinions1 (online social network)
  • Large Datasets:
    • amazon-2008 (book similarity network)
    • ljournal-2008 (LiveJournal social network)
    • hollywood-2011 (actor co-occurrence network)
    • twitter-2010 (Twitter follower network)
    • uk-union (web page link network) - noted as the largest publicly available graph at the time of publication.

The authors also propose "idealized" degree distributions (discrete power law and generalized log-normal) and clustering coefficient profiles for benchmarking purposes, which can be tuned for specific scenarios.

Key Insights and Ideas

  • Community Structure is Key: The paper strongly emphasizes that matching clustering coefficients is as important as matching degree distributions for realistic graph generation, especially for social networks. BTER's two-phase approach directly addresses this by building dense communities first.
  • Direct Parameter Calculation: A significant practical advantage is that BTER's parameters can be directly calculated from the desired degree and clustering coefficient profiles, eliminating the need for computationally expensive iterative fitting procedures common in other models.
  • Scalability Through Parallelism: The independent edge generation approach makes BTER highly amenable to parallel processing. The Hadoop MapReduce implementation demonstrates impressive scalability, handling graphs with billions of edges efficiently.
  • Generalized Log-Normal as a Better Fit: For idealized degree distributions, the authors advocate for the generalized log-normal (GLN) distribution over the standard power law, as it provides a smoother tail and avoids abrupt cutoffs, better reflecting observed real-world degree distributions.

Key Results

  • Accurate Matching: BTER demonstrates a very close match to real-world graphs in terms of both degree distributions and, crucially, clustering coefficients per degree. This is shown across various datasets, from small collaboration networks to massive web graphs.
  • Scalable Generation: The Hadoop MapReduce implementation successfully generates graphs with up to 122 million nodes and 4.6 billion edges in under 25 minutes on a 32-node cluster.
  • Performance Comparison: BTER outperforms or matches other scalable models like Chung-Lu and SKG in fitting real-world graph properties, particularly in capturing community structure.
  • Efficient Implementation: The implementation requires only $O(d_{\rm max})$ storage and $O(\log d_{\rm max})$ operations per edge, making it highly efficient.

Limitations and Future Work

  • Simple Graphs Only: The current BTER model generates simple, undirected, unweighted graphs. Extensions to directed, weighted, or multi-graphs are needed.
  • Limited Community Hierarchy: BTER models communities as distinct "blocks" but doesn't inherently capture hierarchical community structures or more complex organizational patterns observed in some real-world networks.
  • Static Nature: The model generates static graphs and doesn't account for evolving network parameters over time.
  • Node/Edge Types: The model does not incorporate node or edge types, which are relevant for graphs representing entities like users and items in e-commerce.

Future work could explore incorporating these limitations, such as developing methods to simulate bipartite or hierarchical community structures, and extending the model to dynamic networks.

Summary updated

BibTeX
@article{kolda2014scalable,
  author = {Tamara G. Kolda and Ali Pinar and Todd D. Plantenga and C. Seshadhri},
  title = {{A Scalable Generative Graph Model with Community Structure}},
  journal = {SIAM J. Sci. Comput.},
  year = {2014},
  doi = {10.1137/130914218},
}
Figure