Deep Graph Library: framework-agnostic Python package for graph neural networks on CPUs, GPUs and clusters
open sourceApache-2.0free
DGL (Deep Graph Library) is a Python package for deep learning on graphs, from the DMLC community. It's framework agnostic, working with existing deep learning frameworks such as PyTorch, and provides a graph object that lives on CPU or GPU with its features, message-passing and other graph functions, and training on large graphs across multiple GPUs and machines. It ships many example implementations of graph neural network models and DGL-Go, a command-line tool for trying them. It's Apache 2.0 licensed. Development has stopped: the repository has had no commits since July 2025 and no maintainer activity on its issues since, and its last release, v2.4.0, was in September 2024; its website, dgl.ai, is now a parked domain.
Problems it solves
- I want to train a graph neural network on my social network data in PyTorch
- I need node classification on a graph too big for one GPU
- I want to try standard GNN models on my graph dataset without writing them myself
Features
- Graph object on CPU or GPU with node and edge features
- Message passing and graph computation functions
- Works with existing deep learning frameworks
- Multi-GPU and multi-machine training on large graphs
- Example implementations of popular GNN models
- DGL-Go command-line tool
Alternatives
The same job
These do what DGL does.
- PyG (PyTorch Geometric) A library for writing and training graph neural networks on PyTorch.
