PanShi2016 / Community_Detection

Baseline Algorithms for Community Detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Community Detection Algorithms

There are some datasets and algorithms for community detection

Requirements

Before compiling codes, the following software should be installed in your system.

  • Matlab
  • gcc (for Linux and Mac) or Microsoft Visual Studio (for Windows)

Datasets Information

Synthetic datasets

Real datasets

Note that zachary and karate are the same datasets, the difference is that zachary dataset provides ground-truth while karate without ground-truth

Test dataset

  • zachary dataset
  • nodes: 34, edges: 78
  • two communities with ground truth size >= 3

How to run baseline algorithms

Global community detection algorithms

$ cd Baseline_Algorithms/Global_Algorithms/Algorithms/
$ sh complile-all.sh
$ sh run.sh
$ cd processCode
$ matlab
$ getResults

Local community detection algorithms

$ cd Baseline_Algorithms/Local_Algorithms/Algorithms/

$ cd LEMON
$ matlab
$ LEMON  % run LEMON algorithm

$ cd LOSP
$ matlab
LOSP    % run LOSP algorithm

$ cd HK
$ matlab
$ mex -largeArrayDims hkgrow_mex.cpp   % compile the mex file 
$ HK    % run HK algorithm

$ cd PR
$ matlab 
$ mex -largeArrayDims pprgrow_mex.cc   % compile the mex file 
$ PR   % run PR algorithm

$ cd PGDc_EMc
$ matlab
$ PGDc_EMc  % run PGDc_EMc algorithm

$ cd YL
$ matlab
$ YL   % run YL algorithm

$ cd MOV
$ matlab
$ MOV  % run MOV algorithm

Announcements

Notification

Please email to panshi2016@gmail.com or setup an issue if you have any problems or find any bugs.

Acknowledgement

In the program, we incorporate some open source codes as baseline algorithms from the following websites:

Global algorithms

Local algorithms

About

Baseline Algorithms for Community Detection


Languages

Language:C++ 53.3%Language:C 26.5%Language:MATLAB 13.0%Language:HTML 4.0%Language:Roff 1.1%Language:Python 0.6%Language:TeX 0.4%Language:Makefile 0.3%Language:XSLT 0.3%Language:Shell 0.3%Language:Batchfile 0.1%Language:CSS 0.1%Language:Gnuplot 0.0%Language:OCaml 0.0%Language:Objective-C 0.0%Language:M 0.0%Language:Euphoria 0.0%