Jiong Zhu, Gaotang Li, Yao-An Yang, Jing Zhu, Xuehao Cui, Danai Koutra. 2024. On the Impact of Feature Heterophily on Link Prediction with Graph Neural Networks. Advances in Neural Information Processing Systems 38 (2024).
To install the dependecies in a new conda environment, run
$ conda create --name <env> --file hetelinkpred/conda_env/dgl.txt
Scripts used to get results for BUDDY can be found in /subgraph-sketching/scripts.
Other scripts can be found in /hetelinkpred/shell-scripts-hetelinkpred.
- GraphSAGE
- GCN
- BUDDY
- MLP
- DistMult
- Dot product
- Common Neighbor
- Adamic Adar
- Resource Allocation
- Personalized Page Rank
- Synthetic dataset of varying heterophily level
- ogbl-collab
- ogbl-citation2
- E-Commerce
- Attributed-PPI
- Attributed-Facebook
Please following the script below to unzip the synthetic and e-commerce datasets.
# sudo apt-get install p7zip-full # install 7z for ubuntu.
# brew install p7zip # install 7z for mac
# For windows, download 7z from https://www.7-zip.org/download.html
cd hetelinkped
7z x dataset.7z.part.001
7z x dataset.7z
Other datasets can be downloaded from their repective official sites, and processed with /hetelinkpred/generate_split.py
Please contact Jiong Zhu ([email protected]) in case you have any questions.
Please cite our paper if you make use of this code in your own work:
@article{zhu2024impactfeatureheterophilylink,
title={On the Impact of Feature Heterophily on Link Prediction with Graph Neural Networks},
author={Zhu, Jiong and Li, Gaotang and Yang, Yao-An and Zhu, Jing and Cui, Xuehao and Koutra, Danai},
journal={Advances in Neural Information Processing Systems},
volume={37},
year={2024}
}