December 22, 2020
Conference Paper

Triangle Counting with Cyclic Distributions

Abstract

Triangles are the simplest non-trivial subgraphs and triangle counting is used in a number of different applications. The order in which vertices are processed in triangle counting strongly effects the amount of work that needs to be done (and thus the overall performance). Ordering vertices by degree has been shown to be one particularly effective ordering approach. However, for graphs with skewed degree distributions (such as power-law graphs), ordering by degree effects the distribution of work; parallelization must account for this distribution in order to balance work among workers. In this paper we provide an in- depth analysis of the ramifications of degree-based ordering on parallel triangle counting. We present approach for partitioning work in triangle counting, based on cyclic distribution and some surprisingly simple C++ implementations. Experimental results demonstrate the effectiveness of our approach, particularly for power-law (and social network) graphs.

Revised: January 29, 2021 | Published: December 22, 2020

Citation

Lumsdaine A., L. D’Alessandro, K. Deweese, J.S. Firoz, and S. Mcmillan. 2020. Triangle Counting with Cyclic Distributions. In IEEE High Performance Extreme Computing Conference (HPEC 2020), September 22-24, 2020, Waltham, MA, 1-8. Piscataway, New Jersey:IEEE. PNNL-SA-153982. doi:10.1109/HPEC43674.2020.9286220