Prerequisites

The algorithm needs the following packages to be installed beforehand:

Python 3.9+
PyTorch 1.10+
PyTorch-Geometric 2.0+
pot
dgl
netrd
Scikit-learn
scipy
Numpy
tqdm
NetworkX

The source code contains:

code/GTLg-att.py    # for graph classification using only node attributes as calibration signal
code/GTLg-attedge.py    # for graph classification using both node attributes and edge information as calibration signal
code/GTLn-att-R.py   # for node classification using only node attributes as calibration signal (Regularization with entropy)
code/GTLn-att-N.py   # for node classification using only node attributes as calibration signal (Network simplex solver)
code/GTLn-attedge.py   # for node classification using both node attributes and edge information as calibration signal
