torch-geometric

Develop Graph Neural Networks with PyTorch Geometric layers and datasets.

2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Clay-HHK/claude-config --skill torch-geometric-clay-hhk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: torch-geometric
Source: https://github.com/Clay-HHK/claude-config/tree/main/skills/torch-geometric
Command: npx skills add https://github.com/Clay-HHK/claude-config --skill torch-geometric-clay-hhk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires torch, torch-geometric, numpy, networkx, matplotlib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Graph Neural Networks (GNNs) development can be complex and time-consuming; this skill provides PyTorch Geometric (PyG) as a cohesive framework with ready-to-use layers and datasets to accelerate experimentation.

Core Features & Use Cases

  • Pre-built layers: GCNConv, GATConv, GraphSAGE, and more for fast model construction.
  • Dataset and tooling: access Planetoid, TUDataset, QM9, and tutorials to benchmark and compare architectures.
  • Real-world use: classify nodes/graphs, predict edges, and work with heterogeneous graphs in molecular, social, and citation data.

Quick Start

Install PyG and run a simple GCN example on a Planetoid dataset.

Frequently Asked Questions about torch-geometric

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a graph neural network for node classification?

To build a graph neural network for node classification, use pre-built PyTorch Geometric layers like GCNConv or GATConv to construct the model and run deterministic training loops on Planetoid datasets. This provides fast model construction and benchmarking.

Can I use PyTorch Geometric for link prediction and graph classification?

Yes, PyTorch Geometric supports link prediction and graph classification. The framework provides ready-to-use message passing layers and dataset loaders for diverse graph data, enabling you to apply GNNs to molecular, social, and citation datasets.

What datasets are available for benchmarking GNN architectures?

Available datasets for benchmarking GNN architectures include Planetoid, TUDataset, and QM9. These dataset loaders provide access to citation networks, molecular graphs, and social data to quickly compare different graph neural network models.

Do I need PyTorch and NumPy to develop graph neural networks with this framework?

Yes, PyTorch and NumPy are required dependencies to develop graph neural networks. You also need PyTorch Geometric core layers, NetworkX for graph structures, and Matplotlib for visualization to run the end-to-end development workflow.

What is the best way to prototype deep learning models for heterogeneous graphs?

The best way to prototype deep learning models for heterogeneous graphs is using PyTorch Geometric message passing layers like GraphSAGE. This framework accelerates experimentation by providing cohesive tools for node classification and edge prediction.

Why does training graph neural networks take so long to develop from scratch?

Training graph neural networks from scratch is complex because you must manually implement message passing logic and data loaders. Using PyTorch Geometric solves this by providing pre-built layers and dataset utilities to accelerate experimentation.