Skip to content

Local Lanczos Spectral Approximation for Community Detection

License

Notifications You must be signed in to change notification settings

PanShi2016/LLSA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLSA

These codes are for our paper "Local Lanczos Spectral Approximation 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

Example dataset

How to run LLSA algorithm

$ cd LLSA_codes 
$ matlab 
$ mex -largeArrayDims GetLocalCond.c   % compile the mex file 
$ mex -largeArrayDims hkgrow_mex.cpp   % compile the mex file 
$ LLSA(k,alpha) 

Command Options for LLSA algorithm:

k: number of Lanczos iteration (default: 4)

alpha: a parameter controls local minimal conductance (default: 1.03)

How to run baseline algorithms

run LOSP algorithm

$ cd baseline_codes/LOSP
$ matlab 
$ LOSP

run HK algorithm

$ cd baseline_codes/HK
$ matlab 
$ mex -largeArrayDims hkgrow_mex.cpp   % compile the mex file 
$ HK

run PR algorithm

$ cd baseline_codes/PR
$ matlab 
$ mex -largeArrayDims pprgrow_mex.cc   % compile the mex file 
$ PR

Announcements

Licence

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://fsf.org/.

Notification

Please email to panshi@hust.edu.cn or setup an issue if you have any problems or find any bugs.

Please cite our papers if you use the codes in your paper:

@inproceedings{shi2017local,
    author={Shi, Pan and He, Kun and Bindel, David and Hopcroft, John E},
    title={Local Lanczos Spectral Approximation for Community Detection},
    booktitle={Joint European Conference on Machine Learning and Knowledge Discovery in Databases},
    pages={651--667},
    year={2017},
    organization={Springer}
    } 

Acknowledgement

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

About

Local Lanczos Spectral Approximation for Community Detection

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published