What problem does it solve?
It removes the guesswork in implementing Graph Neural Networks by providing the right PyTorch Geometric (PyG) data structures, layer patterns, and training workflows for graph learning tasks.
Core Features & Use Cases
- Graph modeling with PyG primitives: Covers
Data and HeteroData so you can represent homogeneous and heterogeneous graphs correctly, including edge_index handling.
- Implement and scale GNNs: Guides stacking common conv layers, writing custom layers via
MessagePassing, and scaling training with NeighborLoader / LinkNeighborLoader.
- Task-ready patterns: Provides ready-to-adapt training patterns for node classification, graph classification, and link prediction (including negative sampling).
- Heterogeneous graph support: Shows how to build and train type-aware models with
to_hetero, HeteroConv, and HGTConv.
- Explainability workflows: Explains how to use
torch_geometric.explain with algorithms like GNNExplainer and CaptumExplainer for model interpretation.
Quick Start
Use the skill when you need to implement or debug a PyTorch Geometric GNN for tasks like node classification or link prediction from your graph tensors (including correct edge_index construction).