- Python 3.8+
- PyTorch 1.12+
- PyTorch Geometric 2.0+
- NumPy
- SciPy
- scikit-learn
- scikit-network
- pymetis
- geoopt
- tqdm
pip install torch torch-geometric numpy scipy scikit-learn scikit-network pymetis geoopt tqdmpython main.pyThe main configuration is set in main.py. You can modify the following parameters:
args.dataset: Dataset to use (e.g., "sbm", "Cora", "CiteSeer")args.simulation_mode: Data partitioning method ("subgraph_fl_louvain" or "subgraph_fl_metis_plus")args.num_clients: Number of federated clientsargs.num_rounds: Number of federated learning rounds
- The project uses CUDA by default. Set
args.use_cuda = Falseinmain.pyif you want to use CPU only. - Dataset files should be placed in the
dataset/directory.