Dataloader |
Default data loader to batch and iterate over multiple graphs. |
NeighborLoader |
Mini-batch loader for node-level tasks on a single large graph. |
HGTLoader |
Heterogeneous mini-batch loader using the layer-wise sampling of "Heterogeneous Graph Transformer" (HGSampling), as PyG's HGTLoader. |
LinkNeighborLoader |
Mini-batch loader for link-level tasks (e.g. link prediction) on a single large graph, following PyG's LinkNeighborLoader. |
NegativeSampling |
Configuration of the negative sampling done by LinkNeighborLoader. |
RandomNodeLoader |
Splits the nodes of a graph into num_parts random partitions and yields the subgraph induced by each partition, following PyG's RandomNodeLoader. |
GraphSAINTSampler |
Base class of the GraphSAINT samplers, from the "GraphSAINT: Graph Sampling Based Inductive Learning Method" paper, following PyG's GraphSAINTSampler. |
GraphSAINTNodeSampler |
GraphSAINT node sampler: samples batch_size edges uniformly at random and keeps their source nodes (so nodes are drawn proportionally to their out-degree), then takes the induced subgraph. |
GraphSAINTEdgeSampler |
GraphSAINT edge sampler: samples batch_size edges without replacement with probability proportional to 1 / out_degree(source) + 1 / in_degree(target), and takes the subgraph induced by their endpoints. |
GraphSAINTRandomWalkSampler |
GraphSAINT random walk sampler: starts batch_size random walks of length walk_length (following out-edges) from uniformly sampled root nodes, and takes the subgraph induced by the visited nodes. |
ShaDowKHopSampler |
The ShaDow \(k\)-hop sampler from the "Decoupling the Depth and Scope of Graph Neural Networks" paper, following PyG's ShaDowKHopSampler. |
ClusterData |
Partitions a graph into num_parts clusters, for Cluster-GCN training ("Cluster-GCN: An Efficient Algorithm for Training Deep and Large Graph Convolutional Networks"), following PyG's ClusterData. |
ClusterLoader |
Merges batch_size clusters of a ClusterData per mini-batch and yields the subgraph they induce, including the edges between the merged clusters (Cluster-GCN's stochastic multiple partitions), following PyG's ClusterLoader. |
balanced_partition() |
Dependency-free balanced graph partitioning. |
ImbalancedSampler |
Samples elements with probabilities inversely proportional to the frequency of their class, to rebalance an imbalanced classification task. |
DynamicBatchSampler |
Batch sampler grouping graphs into batches with at most max_num nodes (or edges) in total, so that batches use a bounded amount of memory. |
DataListLoader |
Data loader yielding plain Python lists of graphs instead of a batch. |
DenseDataLoader |
Data loader stacking dense graphs along a new batch dimension. |
TemporalDataLoader |
Iterates over the events of a TemporalData in their stored (time) order, merging batch_size successive events into a mini-batch, as PyG's torch_geometric.loader.TemporalDataLoader. |