Skip to content

Feature and graph stores

PyG-style stores holding the features and the edges of a graph outside a GraphData. A (FeatureStore, GraphStore) pair can be passed to NeighborLoader, which then only gathers the rows of the sampled nodes. See the large graphs guide.

Feature stores

Class Description
TensorAttr Identifies an array of a FeatureStore.
FeatureStore Abstract key-value store of arrays, following PyG's FeatureStore.
InMemoryFeatureStore A FeatureStore keeping its arrays in memory (as mx.array).
MemmapFeatureStore A FeatureStore keeping every array in a .npy file on disk.

Graph stores

Class Description
EdgeAttr Identifies the edges of a GraphStore.
GraphStore Abstract store of the edges of a graph, following PyG's GraphStore.
InMemoryGraphStore A GraphStore keeping its edges in memory (as np.ndarray).
MemmapGraphStore A GraphStore keeping its edges in .npy files, read through memory mapping, so that a graph converted once (e.g. to CSC) can be reopened instantly, without parsing or sorting its edges again.