Skip to content

API reference

Every public class and function of mlx-graphs, generated from the docstrings. The names follow PyTorch Geometric: mlx_graphs.nn is torch_geometric.nn, mlx_graphs.loaders is torch_geometric.loader, and so on. Use the search (/) to jump to a name.

  • Data


    GraphData, HeteroGraphData, TemporalData and batches of graphs.

    16 objects

  • Datasets


    Planetoid, TU, OGB, LRGB, JODIE, knowledge graphs and more, downloaded on first use.

    54 objects

  • Loaders


    Dataloader, NeighborLoader, LinkNeighborLoader, ClusterGCN, GraphSAINT and other samplers.

    19 objects

  • Transforms


    Graph transforms: splits, self-loops, positional encodings, normalization.

    45 objects

  • Neural networks


    Message passing, 40+ convolution layers, models, aggregations, pooling, normalization.

    189 objects

  • Utils


    Edge index and adjacency helpers, scatter, sparse, generators, conversions.

    94 objects

  • Algorithms


    Node2Vec and MetaPath2Vec embeddings.

    2 objects

  • Metrics


    Link prediction and ranking metrics, ROC-AUC and average precision.

    19 objects