This repository provides a reference implementation of MHGCN as described in the paper:
Multiplex Heterogeneous Graph Convolutional Network
Pengyang Yu, Chaofan Fu, Yanwei Yu, Chao Huang, Zhongying Zhao, Junyu Dong.
KDD'22
Available at https://doi.org/10.1145/3534678.3539482
Recent versions of the following packages for Python 3 are required:
The used datasets are available at:
We compress the data set into a mat format file, which includes the following contents.
In addition, we also sample the positive and negative edges in the network, and divide them into three text files: train, valid and test for link prediction.
First, you need to determine the data set. If you want to do node classification tasks, you need to modify the data set path in Node_classification.py
. If you want to do link prediction, you need to modify the dataset path in Link_prediction.py
.
Second, you need to modify the number of weights in Model.py
. The number of weights should be the number of sub-networks after decoupling.
Finally, you need to determine the sub-network and the number of sub-networks in Decoupling_matrix_aggregation.py
.
Execute the following command to run the node classification task:
python Node_Classification.py
Execute the following command to run the link prediction task:
python Link_Prediction.py
If you find MHGCN useful in your research, please cite the following paper:
@inproceedings{yu2022multiplex,
title={Multiplex Heterogeneous Graph Convolutional Network},
author={Yu, Pengyang and Fu, Chaofan and Yu, Yanwei and Huang, Chao and Zhao, Zhongying and Dong, Junyu},
booktitle={Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
pages={2377--2387},
year={2022}
}