Skip to content

divelab/LGLP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Line Graph Neural Networks for Link Prediction

Introduction

Pytorch implementation of Line Graph Neural Networks for Link Prediction.

model

If using this code , please cite our paper.

@article{cai2020line,
  title={Line graph neural networks for link prediction},
  author={Cai, Lei and Li, Jundong and Wang, Jie and Ji, Shuiwang},
  journal={arXiv preprint arXiv:2010.10046},
  year={2020}
}

System requirement

Programming language

Python 3.5 +

Python Packages

Pytorch , Numpy , Networkx, PyTorch Geometric

Datasets

Raw datasets are obtained from https://noesis.ikor.org/datasets/link-prediction. Datasets are processed and saved into mat file.

Training

Train the network

cd LGLP/Python
python Main.py --data-name=BUP --test-ratio=0.5

Acknowlegdements

Part of code borrow from https://github.com/muhanzhang/SEAL and https://github.com/muhanzhang/DGCNN. Thanks for their excellent work!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.5%
  • C++ 16.1%
  • Makefile 1.8%
  • C 1.7%
  • Other 0.9%