Deep Graph Library (DGL)

DGL – Deep Graph Library

A framework-agnostic graph neural network library that supports large graphs and distributed training.

No recent releasesAdvancedv2.2.1Apache-2.0Graph Neural Networks

Official documentation

Basic information

NameDeep Graph Library (DGL)
Full nameDGL – Deep Graph Library
CategoryGraph Neural Networks
DeveloperThe DMLC community (supported by AWS and New York University)
Release yearNot specified
Official websitegithub.com/dmlc/dgl
GitHub repositorydmlc/dgl
Official documentationNot specified
Package on PyPIdgl
LicenseApache-2.0 (PyPI license)
Project statusNo recent releases No new release for more than two years
Latest version13 May 2024 (version 2.2.1)
Programming languagePython, C++
Operating systemsNot specified
Required Python versionNot specified
Difficulty levelAdvanced

Data last checked: 21 November 2026 — source: PyPI JSON API (2026-11-21)

Overview

DGL provides an efficient graph representation, custom message passing and ready layers, and distributed training on graphs with billions of edges.

The last release published on PyPI is 2.2.1 (May 2024), and newer releases are distributed from the project's package repository; check their compatibility with your PyTorch version.

When to choose it? Choose it for very large graphs or distributed training, after checking compatibility.

Uses

Main uses

  • GNNs on large graphs
  • Distributed graph training

Scientific fields

  • Recommender systems
  • Computational chemistry

Suitable project types

  • Recommendation on a user-product graph

Research applications

  • Large-scale GNN experiments

Graph Neural NetworksDistributed computing and training

Technical features

A feature is shown as "Supported" only if it is documented in the library's official documentation; anything we have not verified is shown as "Not specified".

CPU supportSupported
GPU supportSupported
CUDA compatibilitySupportedCUDA packages are downloaded from the project repository for your CUDA version.
Distributed training or computingSupported
Automatic differentiation (Autodiff)SupportedThrough the backend framework.
Model deploymentPartial or through an add-on
Pre-trained modelsPartial or through an add-on
Supported data typesHomogeneous and heterogeneous graphs
Integration with other librariesPyTorch, NetworkX
Flexibility (editorial estimate)High
Performance (editorial estimate)High
Community (editorial estimate)Medium
Documentation quality (editorial estimate)Good documentation

Installation and running

Shell
pip install dgl

For recent GPU packages, follow the installation instructions on the official website.

Installing inside a virtual environment (venv or conda) is recommended. If you need compatibility with a specific CUDA version or operating system, refer to the official documentation, because this information changes with every release.

Pros

  • Good performance on large graphs
  • Distributed training

Limitations

  • PyPI releases stopped in 2024
  • Currently a smaller community than PyG

References and verification

History of verified versions

VersionRelease dateChecked on
2.2.113 May 202421 November 2026

Page information last reviewed: 21 November 2026. The description was written originally for the encyclopedia and is not copied from the official websites.

Report information that needs updating