k-Core (Coreness)
#
Problem Specification#
Input, an undirected graph.
#
Output, a mapping from each vertex to its coreness value. See below for the definition of -cores and coreness values.
#
DefinitionsA -core of a graph is a maximal subgraph where the degree of every vertex in is . The coreness of a vertex is the maximum -core a vertex participates in. The -core problem in this paper is to compute a mapping from each vertex to its coreness value.
#
Algorithm ImplementationsWe provide an implementation of -core based on the work-efficient peeling algorithm from Julienne [1] in GBBS. We provide a tutorial on how to implement this -core example in our tutorial.
The code for our implemenation is available here.
#
Cost BoundsThe algorithm runs in work and depth, where is the peeling-complexity of the graph , defined as the number of rounds to peel the graph to an empty graph where each peeling step removes all minimum degree vertices. More details can be found in Section 6.4 of [2].
#
Compiling and RunningThe benchmark can be compiled by running:
It can be run on a test input graph in the uncompressed format as follows:
It can be run on a test input graph in the compressed format as follows:
#
References[1] Laxman Dhulipala, Guy Blelloch, and Julian Shun
Julienne: A Framework for Parallel Graph Algorithms using Work-efficient Bucketing
Proceedings of the ACM Symposium on Parallelism in Algorithms and Architectures (SPAA), pp. 293-304, 2017.
[2] Laxman Dhulipala, Guy Blelloch, and Julian Shun
Theoretically Efficient Parallel Graph Algorithms Can Be Fast and Scalable
Proceedings of the ACM Symposium on Parallelism in Algorithms and Architectures (SPAA), pp. 393-404, 2018.