Core Concepts
A novel algorithm for counting the exact number of triangles in bounded arboricity graphs in O(1) rounds, O(nδ) space per machine, and O(mα) total space, where α is the arboricity of the graph.
Abstract
The paper presents a simple and efficient algorithm for counting the exact number of triangles in bounded arboricity graphs in the Massively Parallel Computation (MPC) model. The key insights are:
The algorithm enumerates the wedges adjacent to the lower degree endpoint of every edge, leveraging the Chiba-Nishizeki lemma which bounds the sum of the minimum degrees of edge endpoints.
The algorithm partitions the adjacency list of the lower degree endpoint of each edge into chunks of size nδ, where δ is a constant, and sends each edge and its corresponding partition to a separate machine.
On each machine, the algorithm forms wedges between the given edge and the edges in its partition, and checks if the third edge completing the wedge into a triangle exists in the graph.
The algorithm uses various MPC primitives like sorting, counting, filtering, etc. to efficiently implement this approach in O(1/δ) rounds, O(nδ) space per machine, and O(mα) total space, where α is the arboricity of the graph.
The paper also shows a lower bound of Ω(1/δ) rounds for triangle counting in the worst-case setting of disjoint subgraphs partitioned across machines, proving the optimality of the algorithm's round complexity.
Stats
Í(u,v)∈E min(deg(u), deg(v)) ≤ 2mα
Quotes
"Counting triangles in O(1) rounds (exactly) is listed as one of the interesting remaining open problems in the recent survey of Im et al. [IKL+23]."
"Our new algorithm is very simple, achieves the optimal O(1) rounds without increasing the space per machine and the total space, and has the potential of being easily implementable in practice."