liveBook · Manning

GraphStore

As explained in Graph Neural Networks in Action

GraphStore is a PyTorch Geometric interface or object for storing graph connectivity and retrieving edge indices for graph operations such as sampling.

GraphStore is a PyTorch Geometric object that stores a graph’s structural information—its edge indices—outside the training process. It enables node sampling when the graph is too large for memory, typically as part of a remote backend. section 7.9

A remote GraphStore implementation typically connects these pieces:

  • Connect to a graph database or other remote data source. section 7.9
  • Implement CRUD operations such as put_edge_index(), get_edge_index(), and remove_edge_index(). section 7.9
  • Link the GraphStore to a sampler that retrieves edge indices and produces subgraphs from input nodes. section 7.9
  • Pass the GraphStore with a FeatureStore to NodeLoader for batch-based training. section 7.9

GeoGrid remote backend

GeoGrid stored graph structure in Neo4J and node features in RocksDB. Its team implemented secure database connections and GraphStore CRUD operations, then integrated a custom sampler and NodeLoader. The resulting pipeline supported large-graph training but required testing and optimization to reduce I/O latency. section 7.9.1

How Graph Neural Networks in Action covers it

How deep it goes
Defines edge-index storage, CRUD methods, sampler integration, and operational trade-offs without detailing database APIs.
Examples
Uses Neo4J, RocksDB, a custom sampler, and NodeLoader in the GeoGrid large-graph training pipeline.
What it assumes
Assumes PyTorch Geometric, graph sampling, remote data sources, and node features as separate pipeline components.
What you can do after
Build it from scratch by connecting a database, implementing GraphStore CRUD operations, and integrating sampling with NodeLoader.
How it connects
Connects remote backends with FeatureStore, graph samplers, NodeLoader, and graph databases.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Graph Neural Networks in Action. The section links point to the parts of the book it draws on.