torch-geometric

Builds PyTorch Geometric workflows for node, link, and graph tasks with sampling and explainability.

Updated Jul 1, 2026
One-click install
npx skills add https://github.com/jasrajtulsi/GRAD-SCOPE --skill torch-geometric-jasrajtulsi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: torch-geometric
Source: https://github.com/jasrajtulsi/GRAD-SCOPE/tree/main/.claude/skills/torch-geometric
Command: npx skills add https://github.com/jasrajtulsi/GRAD-SCOPE --skill torch-geometric-jasrajtulsi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PyTorch Geometric helps you build and scale graph neural network workflows without stitching together low-level message passing, sampling, and heterogeneous graph utilities by hand.

Core Features & Use Cases

  • Graph Learning: Build node, link, and graph classification models with GCN, GAT, GraphSAGE, GIN, and custom layers.
  • Large-Scale Training: Use neighbor sampling, link sampling, and other loaders to train on graphs that do not fit in memory.
  • Heterogeneous and Explainable GNNs: Work with multiple node and edge types, custom datasets, and explanation tools for model inspection.
  • Use Case: Train a citation-network classifier, sample mini-batches from a large social graph, or convert relational data into a heterogeneous graph pipeline.

Quick Start

Use the torch-geometric skill to help you design, debug, or explain a PyTorch Geometric graph neural network workflow for the attached code or 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 in PyTorch Geometric?

Build graph neural networks for node classification in PyTorch Geometric by applying message passing layers like GCN, GAT, or GraphSAGE to torch_geometric data structures. You construct custom layers and feed graph data directly into the model for training.

How do I train graph neural networks on large graphs that do not fit in memory?

Train large-scale graph neural networks on graphs that do not fit in memory by using neighbor sampling and link sampling loaders. These mini-batch loaders subset local graph neighborhoods, allowing you to process massive graphs efficiently without loading the entire topology.

Can I use PyTorch Geometric for heterogeneous graphs with multiple node and edge types?

PyTorch Geometric supports heterogeneous graphs with multiple node and edge types. You can convert relational data into typed graph pipelines and use specialized message passing layers designed to operate across distinct node and edge categories.

How do I explain graph neural network predictions and inspect model behavior?

Explain graph neural network predictions and inspect model behavior using built-in explanation utilities in PyTorch Geometric. These tools help identify which nodes, edges, or features contribute to specific predictions for model transparency.

What's the best way to convert relational data into a heterogeneous graph pipeline?

Convert relational data into a heterogeneous graph pipeline by mapping distinct entities to typed nodes and relationships to typed edges within torch_geometric data structures. This allows you to apply custom datasets and heterogeneous message passing layers directly.

Does PyTorch Geometric support link prediction on custom datasets?

PyTorch Geometric supports link prediction tasks on custom datasets by utilizing message passing layers and neighbor loaders. You can train models to predict edges between nodes using the same data structures used for node and graph classification.