This repository provides a comprehensive framework for community detection and downstream task analysis using various models. The workflow involves using community detection models from the models
directory and applying them to different downstream tasks located in the Use_Cases
directory. Each application folder contains specific instructions to guide you through the process.
-
Choose a Community Detection Model
-
Navigate to the
models
directory. You will find subdirectories for different community detection algortihms. Choose which one you want to use. Navigate to that directory and follow the steps listed in the read me file there. This will usually look like:- Run the Bash Script
- The script performs the following actions:
- Download the Dataset: Retrieves the dataset from a provided link.
- Generate Communities File: Creates a communities file in JSON/CSV format using the selected community detection model.
-
-
Navigate to the Application Folder
- In the
Use_cases
directory, you will see subfolder for the different applications. - Navigate to the application folder that you are interested in.
- Each application folder contains a bash script that facilitates the entire process. See details in each application folder
readme
file.
- In the
-
Analyze with Downstream Tasks
- Utilize the generated communities file to perform analysis as per the specific tasks described in the
Use_Cases
directory.
- Utilize the generated communities file to perform analysis as per the specific tasks described in the
-
Models Directory:
- This directory contains different community detection algorithms. Select the model that best fits your analysis needs.
-
Use Cases Directory:
- Each folder in this directory corresponds to a different downstream task. Follow the specific instructions provided in each folder to carry out the analysis.
- Choose a Community Detection Model:
cd models # Select the model and follow any setup instructions if required
- Compare communities
python3 comm_quality.py --graphfile graph.csv --directory_path path-to-communities-folder
- Plot comparison of communities
python3 plot_community_metrices.py --directory_path path-to-communities_metrics-folder
- Choose downstream task:
cd Use_Cases # Select the use case and follow setup instructions if required