Abstract
Social networks present unique challenges for graph compression due to the absence of natural hierarchical orderings, such as URLs in Web graphs. This paper proposes two primary techniques: a "shingle ordering" heuristic that groups nodes with similar neighborhoods and a "backlinks" (BL) compression scheme that exploits link reciprocity. Experimental results on large-scale networks like LiveJournal and Flickr demonstrate that these methods can reduce storage requirements to approximately 10-11 bits per edge while maintaining efficient query access.
Introduction
To perform real-time graph analysis, such as neighbor lookups, massive networks must be stored in a computer's main memory (RAM). While the Boldi-Vigna (BV) algorithm efficiently compresses Web graphs to roughly 3 bits per edge by exploiting locality and similarity (typically via URL sorting), social networks lack such an obvious ordering. This research investigates whether social networks can be ordered to achieve similar compression efficiency and how unique social features, like reciprocal links, can be leveraged.
Methodology
The authors introduce three key contributions to address the social network compression problem:
- The Backlinks (BL) Scheme: An extension of the BV algorithm that specifically handles reciprocal edges (mutual follows). By encoding these edges more succinctly, the BL scheme significantly improves compression in networks with high reciprocity.
- Shingle Ordering: To find an effective node ordering, the authors use "shingles" based on min-wise independent hashing. By hashing a node's set of neighbors to create a fingerprint and sorting nodes by these fingerprints, nodes with similar neighborhoods are placed close together. This maximizes the efficiency of the compression algorithm's "copying" mechanism.
- Theoretical Framework: The search for an optimal ordering is formalized as the Minimum Logarithmic Arrangement (MLOGA) problem. The authors prove that finding the absolute optimal ordering is NP-hard, justifying the use of the shingle heuristic.
Experimental Setup
The methods were evaluated on several large-scale directed graphs, including LiveJournal (5.3M nodes, 79M edges) and Flickr (25M nodes, 70M edges), both exhibiting high reciprocity (64-72%). Additionally, Web graphs and metadata-rich subsets were used to test the impact of geographic proximity on compression.
Key Insights
- Fundamental Complexity: Social networks are inherently "more random" than Web graphs. Even with optimized ordering, they require ~10 bits/edge, compared to ~2 bits/edge for the Web.
- Reciprocity is Critical: Exploiting mutual links via the BL scheme provides a substantial boost, often outperforming standard Web-centric methods on social data.
- The Power of Shingles: Shingle ordering is a robust tool that often halves the bits-per-link compared to random or crawl-based sequences.
- Geography vs. Topology: Surprisingly, ordering users by physical location (zip codes) is less effective than the shingle approach. Grouping by shared friends (topology) is a far better strategy for storage than grouping by physical proximity.
Performance Results
On the LiveJournal dataset, the combination of the BL scheme and Double Shingle ordering achieved 10.4 bits/link, a significant improvement over the 14.4 bits/link required by the standard BV approach. Shingle ordering consistently outperformed other common techniques like Gray codes, BFS, or DFS traversals. Furthermore, as shown in the Flickr dataset analysis, the compressibility of these networks remains remarkably stable over time, even as the network grows by millions of edges.
Conclusion and Future Work
While the proposed methods offer significant gains, challenges remain. The BL scheme's use of "prototype chains" can introduce query latency if chains become too long, necessitating a trade-off between compression density and lookup speed. Future research may focus on better approximation algorithms for the MLOGA problem to further bridge the gap between current heuristics and the theoretical optimum.
Summary updated