A convolutional neural network for graph classification in PyTorch
Branch: master
Clone or download
giannisnik Merge pull request #7 from robd2/master
fix for #6 Accuracy = 0 as a result of recent PyTorch changes. See here for info: pytorch/pytorch#5411
Latest commit 740c682 Feb 16, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
datasets Initial commit Mar 30, 2018
kcnn fix for #6 Sep 14, 2018
README.md Update README.md Oct 9, 2018


Kernel Graph Convolutional Neural Networks

Code for the paper Kernel Graph Convolutional Neural Networks.


Code is written in Python 3.6 and requires:

  • PyTorch 0.3
  • NetworkX 1.11
  • igraph 0.7
  • scikit-learn 0.18


Use the following link to download datasets:


Extract the datasets into the datasets folder.

Run the model

First, specify the dataset and the hyperparameters in the main.py file. Then, use the following command:

$ python main.py


Please cite our paper if you use this code:

  title={Kernel Graph Convolutional Neural Networks},
  author={Nikolentzos, Giannis and Meladianos, Polykarpos and Tixier, Antoine Jean-Pierre and Skianis, Konstantinos and Vazirgiannis, Michalis},
  booktitle={International Conference on Artificial Neural Networks},

Provided for academic use only