Source code for the Paper: "Colorful h-star Core Decomposition"
The default graph coloring algorithm: Degree
- The Colorful h-star Core Decomposition
- ColorfulStarCoreDecomposition
- The h-clique Densest Subgraph Problem
- hCliquePeel
- OptimizedCliqueCore
- Header Files
- header
The colorful h-star core decompositon algorithms, including the basic and advanced version.
$ cd ./ColorfulStarCoreDecomposition/
$ g++ -O3 -o HStar ColorfulStarCoreDecomposition.cpp
$ ./HStar h filepath colorAlgo [basic]
arguments | Description |
---|---|
HStar | executable file |
h | the size of stars |
filepath | input file path |
colorAlgo | graph coloring algorithm: "0" for Degree; "1" for Degen; "2" for FF; "3" for SD. |
[basic] | Optional, indicate which algorithm will be performed. "basic" for the basic version HStarDP, i.e. recomputing the colorful h-star degree when a neighbor is removed; the default is the advanced version HStarCD, i.e. using the proposed updating technique to calculate the colorful h-star degree. |
The naive approach to approximate the h-clique densest subgraph following the peeling paradigm, that is to remove the node with minimum h-clique degree and return the subgraph which achieves the highest h-clique density among all subgraphs.
$ cd ./hCliquePeel/
$ g++ -O3 -o hCliquePeel hCliquePeeling.cpp
$ ./hCliquePeel h filepath
arguments | Description |
---|---|
hCliquePeel | executable file |
h | the size of stars |
filepath | input file path |
using the colorful h-star θ core as a reduction, and performing the CoreApp algorithm or the peeling algorithm on the reduced subgraph.
$ cd ./OptimizedCliqueCore/
$ g++ -O3 -o HStarPP OptimizedCliqueCore.cpp
$ ./HStarPP h filepath
arguments | Description |
---|---|
HStarPP | executable file |
h | the size of stars |
filepath | input file path |
using the colorful h-star Kmax core as an approximation solution, or performing the CoreApp algorithm or the peeling algorithm on the colorful h-star Kmax core.
$ cd ./OptimizedCliqueCore/
$ g++ -O3 -o HStarMPP ColorfulStarKmaxCore.cpp
$ ./HStarMPP h filepath alg
arguments | Description |
---|---|
HStarMPP | executable file |
h | the size of stars |
filepath | input file path |
alg | "MaxCore" for computing the colorful h-star Kmax core and its h-clique density; "MaxCorePeel" for running the peeling algorithm on the colorful h-star Kmax core. |
compute the the colorful h-star Kmax core directly using binary search method, return the Kmax and the Kmax core
$ cd ./OptimizedCliqueCore/
$ g++ -O3 -o HStarMB ColorfulStarKmaxCore-BS.cpp
$ ./HStarMB h filepath
arguments | Description |
---|---|
HStarMB | executable file |
h | the size of stars |
filepath | input file path |