Graph Partitoning Using Graph Convolutional Networks as described in GAP: Generalizable Approximate Graph Partitioning Framework
To handle large graphs, the loss function is implemented using sparse torch tensors using a custom loss class.
where Y_{ij} is the probability of node i being in partition j.
Then the gradients can be calculated by the equations:
Create a virtual environment using venv
python3 -m venv env
Source the virtual environment
source env/bin/activate
Use the package manager pip to install requirements.
pip install -r requirements.txt
python TrialModel.py
Has only been tested on small custom graphs.