MCPcopy Index your code
hub / github.com/EdisonLeeeee/GraphGallery

github.com/EdisonLeeeee/GraphGallery @1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.0 ↗ · + Follow
2,260 symbols 7,954 edges 517 files 553 documented · 24%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

banner

TensorFlow or PyTorch, both!

Python
tensorflow
pytorch
pypi
license

GraphGallery

GraphGallery is a gallery for benchmarking Graph Neural Networks (GNNs) and Graph Adversarial Learning with TensorFlow 2.x and PyTorch backend. Besides, Pytorch Geometric (PyG) backend and Deep Graph Library (DGL) backend now are available in GraphGallery.

💨 NEWS

  • We have removed the TensorFlow dependencyand use PyTorch as the default backend for GraphGallery .
  • We have integrated the Adversarial Attacks in this project, examples please refer to Graph Adversarial Learning examples.

🚀 Installation

# Outdated
pip install -U graphgallery

or

# Recommended
git clone https://github.com/EdisonLeeeee/GraphGallery.git && cd GraphGallery
pip install -e . --verbose

where -e means "editable" mode so you don't have to reinstall every time you make changes.

🤖 Implementations

In detail, the following methods are currently implemented:

Node Classification Task

ChebyNet from Michaël Defferrard et al, 📝Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering (NeurIPS'16)

[:octocat:TensorFLow] [🔥PyTorch]

GCN from Thomas N. Kipf et al, 📝Semi-Supervised Classification with Graph Convolutional Networks (ICLR'17)

[:octocat:TensorFLow] [🔥PyTorch] [🔥PyG] [🔥DGL]

GraphSAGE from William L. Hamilton et al, 📝Inductive Representation Learning on Large Graphs (NeurIPS'17)

[:octocat:TensorFLow] [🔥PyTorch]

FastGCN from Jie Chen et al, 📝FastGCN: Fast Learning with Graph Convolutional Networks via Importance Sampling (ICLR'18)

[:octocat:TensorFLow] [🔥PyTorch]

LGCN from Hongyang Gao et al, 📝Large-Scale Learnable Graph Convolutional Networks (KDD'18)

[:octocat:TensorFLow] [🔥PyTorch]

GAT from Petar Veličković et al, 📝Graph Attention Networks (ICLR'18)

[:octocat:TensorFLow] [🔥PyTorch] [🔥PyG]

SGC from Felix Wu et al, 📝Simplifying Graph Convolutional Networks (ICLR'19)

[:octocat:TensorFLow] [🔥PyTorch] [🔥PyG]

GWNN from Bingbing Xu et al, 📝Graph Wavelet Neural Network (ICLR'19)

[:octocat:TensorFLow] [🔥PyTorch]

GMNN from Meng Qu et al, 📝Graph Attention Networks (ICLR'19)

[:octocat:TensorFLow] [🔥PyTorch]

ClusterGCN from Wei-Lin Chiang et al, 📝Cluster-GCN: An Efficient Algorithm for Training Deep and Large Graph Convolutional Networks (KDD'19)

[:octocat:TensorFLow] [🔥PyTorch] [🔥PyG]

DAGNN from Meng Liu et al, 📝Towards Deeper Graph Neural Networks (KDD'20)

[:octocat:TensorFLow] [🔥PyTorch]

GDC from Johannes Klicpera et al, 📝Diffusion Improves Graph Learning (NeurIPS'19)

[:octocat:TensorFLow] [🔥PyTorch] [🔥PyG]

TAGCN from Du et al, 📝Topology Adaptive Graph Convolutional Networks (arxiv'17)

[:octocat:TensorFLow] [🔥PyTorch]

APPNP, PPNP from Johannes Klicpera et al, 📝Predict then Propagate: Graph Neural Networks meet Personalized PageRank (ICLR'19)

[:octocat:TensorFLow(APPNP)] [:octocat:TensorFLow(PPNP)] [🔥PyTorch(APPNP)] [🔥PyTorch(PPNP)]

PDN from Benedek Rozemberczki et al, 📝Pathfinder Discovery Networks for Neural Message Passing (ICLR'21)

[🔥PyG]

SSGC from Zhu et al, 📝Simple Spectral Graph Convolution (ICLR'21)

[:octocat:TensorFLow] [🔥PyTorch]

AGNN from Zhu et al, 📝Attention-based Graph Neural Network for semi-supervised learning (ICLR'18 openreview)

[:octocat:TensorFLow] [🔥PyTorch]

ARMA from Bianchi et al., 📝Graph Neural Networks with convolutional ARMA filters (Arxiv'19)

[:octocat:TensorFLow] [🔥PyTorch]

GraphMLP from Yang Hu et al., 📝Graph-MLP: Node Classification without Message Passing in Graph (Arxiv'21)

[🔥PyTorch]

Defense models (for Graph Adversarial Learning)

Robust Optimization

RobustGCN from Petar Veličković et al, 📝Robust Graph Convolutional Networks Against Adversarial Attacks (KDD'19)

[:octocat:TensorFLow] [🔥PyTorch]

SBVAT from Zhijie Deng et al, 📝Batch Virtual Adversarial Training for Graph Convolutional Networks (ICML'19)

[:octocat:TensorFLow] [🔥PyTorch]

OBV

Core symbols most depended-on inside this repo

Shape

Method 1,551
Class 359
Function 350

Languages

Python100%
C++1%

Modules by API surface

graphgallery/gallery/callbacks.py84 symbols
graphgallery/data/base_graph.py34 symbols
graphgallery/backend/modules.py33 symbols
graphgallery/sequence/sequence.py31 symbols
graphgallery/data/homograph.py30 symbols
graphgallery/nn/models/torch_keras.py29 symbols
graphgallery/nn/layers/tensorflow/misc.py29 symbols
graphgallery/gallery/trainer.py28 symbols
graphgallery/gallery/embedding/walker.py28 symbols
graphgallery/attack/untargeted/tensorflow/metattack.py24 symbols
graphgallery/data/hetegraph.py20 symbols
graphgallery/attack/targeted/common/nettack.py19 symbols

For agents

$ claude mcp add GraphGallery \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page