This repository is called CGRA in the previous version, I renamed the model name in the camera-ready version.
This repository is for the source code of the journal Neural Networks paper "Self-Supervised Contrastive Graph Representation with Node and Graph Augmentation."
- torch==1.10.1+cu113
- torch_geometric==2.0.2
- scikit_learn==1.0.2
Install all dependencies using
pip install -r requirements.txt
You can use the following command, and the parameters are given
python train.py --dataset Cora
The --dataset
argument should be one of [Cora, CiteSeer, PubMed, DBLP].
The code refers to the following two papers. Thank them very much for their open source work.
Deep Graph Contrastive Representation Learning(GRACE)
Directed Graph Contrastive Learning(DiGCL)
@article{DBLP:journals/nn/DuanXLT23,
author = {Haoran Duan and
Cheng Xie and
Bin Li and
Peng Tang},
title = {Self-supervised contrastive graph representation with node and graph
augmentation},
journal = {Neural Networks},
volume = {167},
pages = {223--232},
year = {2023},
}