This repository contains the codes of FPPM and the simulations in "Community detection based on first passage probabilities". FPPM is implemented in FPPM.py.
- python3
- networkx
- python-igraph
- numpy
- pandas
- scipy
- plotly
- LFR program
To repeat our numerical experiments, run as follows:
- Simulations on Planted L-Partition Benchmarks
- python generate_planted_lpartition.py
- python Simulation_on_Planted_LPartition.py
- Simulations on LFR Benchmarks
- python generate_lfr.py
- python Simulation_on_LFR.py
- Simulations on Real Networks
- cd Real_Networks
- python preprocess.py
- cd ..
- python Simulation_on_Real_Networks.py
- Visualization
- python visualize.py
Due to randomness, the results maybe not be reproduced in the simulations on the synthetic benchmarks. But the results must be similar.