Introduction: The Realism vs. Scalability Trade-off
In network science, generating synthetic graphs that mirror real-world social networks requires balancing realism with scalability. Real social networks are characterized by "small-world" properties: a power-law degree distribution (a few high-degree "hubs"), small diameters, and high clustering (the "friend-of-a-friend" effect).
Existing generation tools typically fall into two categories:
- High-Fidelity Models: Models like Exponential Random Graph Models (ERGMs) capture clustering accurately but are computationally expensive, making them impractical for networks exceeding a few thousand nodes.
- High-Efficiency Models: Models like Chung-Lu (CL) or Kronecker (KPGM) can generate millions of edges rapidly but often produce "hollow" graphs that lack the dense local clustering found in real social data.
The Transitive Chung Lu (TCL) model bridges this gap, offering a generator that is as fast as the simplest models while maintaining the clustering levels of real-world networks.
The Transitive Chung Lu (TCL) Model
TCL builds upon the standard Chung-Lu model, which generates edges based on node popularity. TCL introduces a "transitive" mechanism to simulate social triadic closure:
- Transitive Edge Creation: With probability $\rho$, the model closes a triangle by connecting a node to a "friend of a friend" (a two-hop walk).
- Random Surfer: With probability $1-\rho$, the model reverts to standard CL behavior, selecting a node based on the global degree distribution.
Crucially, the authors proved that adding these transitive edges does not distort the expected degree distribution. This allows the model to inject clustering "for free" while preserving the overall structural shape of the network.
Bias Correction and Parameter Learning
A significant challenge in fast graph generation is "edge collision"—attempting to place an edge where one already exists. This typically leads to under-sampling high-degree nodes. To resolve this, the authors implemented a waiting queue system that ensures actual edge proportions match theoretical expectations.
To make TCL practical, the authors developed a fast parameter learning method using an Expectation-Maximization (EM) algorithm. This allows the model to automatically estimate the optimal $\rho$ (clustering parameter) from a real-world dataset. By sampling only a small subset of edges (e.g., 10,000 per iteration), the algorithm converges in seconds.
Experimental Evaluation
The model was tested on four large-scale networks:
- Epinions: A consumer trust network (75k nodes, 811k edges).
- Facebook: A snapshot of Purdue University student friendships (77k nodes, 500k edges).
- Gnutella30: A peer-to-peer file-sharing network (36k nodes, 176k edges).
- Purdue Email: SMTP logs (214k nodes, 1.7M edges).
Key Results
- Accuracy: TCL significantly outperformed standard CL and Kronecker models in matching the Clustering Coefficient and Hop Plots (reachability). While other models underestimated the clustering in datasets like Facebook, TCL's output tracked the original distributions almost perfectly.
- Speed and Scaling: TCL operates in $O(M)$ time, where $M$ is the number of edges. Learning parameters for the 1.7-million-edge Purdue Email network took only 3 seconds, compared to over 2 hours for the Kronecker model. Generation of the same network took 141 seconds, roughly twice as fast as Kronecker ($O(M \log N)$).
Conclusion
The Transitive Chung Lu model demonstrates that local clustering can be incorporated into large-scale graph generation without sacrificing linear scalability. While the use of a single transitivity parameter is a heuristic, its empirical performance across diverse datasets suggests it is a robust tool for creating realistic synthetic social networks. Future work will focus on formalizing the mathematical bounds of this clustering and exploring temporal network evolution.
Summary updated