YJYTJ / IHGNN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IHGNN

About

PyTorch implementation of IHGNN.

Installation

This implementation is based on the structure2vec graph backend. Under the "lib/" directory, type

make -j4

to compile the necessary c++ files.

After that, under the root directory of this repository, type

python main.py -data DATASETNAME -degree_as_tag 0

for datasets that have node labels, such as the MUTAG dataset.

And type

python main.py -data DATASETNAME -degree_as_tag 1

for datasets that don't have node labels, such as the COLLAB dataset.

To see the results, type

./compute_acc.sh

Datasets

All the datasets are downloaded from

https://ls11-www.cs.tu-dortmund.de/staff/morris/graphkerneldatasets

Default graph datasets are stored in "data/DATASETNAME/DATASETNAME.txt". Check the "data/README.md" for the format.

About


Languages

Language:Python 61.0%Language:C++ 22.4%Language:MATLAB 11.1%Language:Makefile 2.6%Language:C 2.4%Language:Shell 0.5%