Skip to content

flyingtango/DiGCN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digraph Inception Convolutional Networks

Paper | Poster | Supplementary

This repository is the official PyTorch implementation of Digraph Inception Convolutional Networks, where we make GCNs available in digraphs (directed graphs) and propose an Inception network to learn multi-scale features in digraphs.

Illustration of digraph conv

directed_schema

 

Illustration of DiGCN model

inception_block

 

If you find our work useful, please considering citing

@article{tong2020digraph,
  title={Digraph Inception Convolutional Networks},
  author={Tong, Zekun and Liang, Yuxuan and Sun, Changsheng and Li, Xinke and Rosenblum, David and Lim, Andrew},
  journal={Advances in Neural Information Processing Systems},
  volume={33},
  year={2020}
}

Requirements

Our project is developed using Python 3.7, PyTorch 1.5.0 with CUDA10.2. We recommend you to use anaconda for dependency configuration.

First create an anaconda environment called DiGCN by

conda create -n DiGCN python=3.7
conda activate DiGCN

Then, you need to install torch manually to fit in with your server environment (e.g. CUDA version). For the torch and torchvision used in my project, run

conda install pytorch==1.5.0 torchvision==0.6.0 cudatoolkit=10.2 -c pytorch

Besides, torch-scatter and torch-sparse are required for dealing with sparse graph. For these two packages, please follow their official instruction torch-scatter and torch-sparse.

Other requirements can be set up through:

cd DiGCN
pip install -e .

Run

cd code
python gcn.py --gpu-no 0 --dataset cora_ml
python digcn.py --gpu-no 0 --dataset cora_ml
python digcn_ib.py --gpu-no 0 --dataset cora_ml

Results

results

License

DiGCN is released under the MIT License. See the LICENSE file for more details.

Acknowledgements

The template is borrowed from Pytorch-Geometric benchmark suite. We thank the authors of following works for opening source their excellent codes. Pytorch-Geometric,Graph2Gauss,GNN-benchmark