Abstract
Truss decomposition is a powerful technique for uncovering cohesive communities in large-scale networks. By requiring every edge to be part of a specific number of triangles, $k$-trusses provide a more robust structural metric than traditional $k$-cores. However, the computational intensity of triangle counting makes truss decomposition difficult for massive graphs. This paper presents an improved in-memory algorithm and two I/O-efficient algorithms designed for billion-edge networks. These algorithms leverage smart bounding and iterative pruning to process massive datasets on a single machine, significantly outperforming distributed MapReduce solutions.
Introduction: The Need for Cohesive Subgraphs
In network analysis, researchers seek "cohesive subgraphs"—clusters of nodes that are highly connected. While finding exact cliques is NP-hard, relaxed metrics like the $k$-core (where every node has at least $k$ neighbors) are often used. However, $k$-cores can be "loose," containing many weakly connected edges that do not represent true communities.
A $k$-truss offers a stricter alternative: it is a subgraph where every edge must participate in at least $(k-2)$ triangles. Because triangles represent strong social ties (e.g., mutual friends), $k$-trusses are far more effective at isolating dense, meaningful clusters from background noise.
Methodology
The primary challenge in truss decomposition is the computational cost of triangle counting and the iterative nature of edge pruning. The authors propose three algorithmic solutions to handle graphs of varying scales:
- Improved In-Memory Algorithm: For graphs that fit in RAM, this algorithm optimizes the baseline by sorting edges by their triangle "support" and using a specialized hashtable to update supports efficiently as edges are pruned. It achieves a time complexity of $O(m^{1.5})$, matching the theoretical lower bound for triangle listing.
- Bottom-Up I/O-Efficient Algorithm: Designed for graphs stored on disk, this approach computes a lower bound on the truss number for every edge by partitioning the graph. It then iteratively extracts memory-sized candidate subgraphs to compute exact $k$-classes and prune the disk-based file.
- Top-Down I/O-Efficient Algorithm: For users only interested in the densest parts of a network (the "top-$t$" trusses), this algorithm computes upper bounds and works downward from the maximum possible $k$, aggressively pruning the search space.
Experimental Evaluation
The authors evaluated their algorithms on nine real-world networks, ranging from small P2P networks to a Yahoo! Web graph containing over 1.09 billion edges.
Key Results
- Scalability: The bottom-up I/O algorithm successfully decomposed the billion-edge Yahoo! graph in approximately 1.75 hours using a standard PC with only 4GB of RAM.
- Efficiency vs. MapReduce: On the HEP dataset (52K edges), a standard MapReduce algorithm took over 4 hours on a 20-node cluster. In contrast, the authors' single-machine algorithm finished in less than one second.
- In-Memory Performance: The improved in-memory algorithm demonstrated speedups of 2.2x to 73.2x over previous state-of-the-art baselines.
- Community Quality: Quantitative analysis confirmed that $k$-trusses have significantly higher clustering coefficients than $k$-cores, proving their superiority in filtering out loosely connected "junk" nodes.
Conclusion
This work demonstrates that massive-scale graph analysis does not always require expensive distributed clusters. By utilizing smart bounding techniques and I/O-efficient data structures, truss decomposition can be performed on billion-edge graphs using a single commodity machine. These algorithms provide a scalable foundation for advanced community detection and can serve as a pre-processing step for even more complex problems, such as maximal clique enumeration.
Summary updated