Home » Grids » Trees and Graphs

Trees and Graphs

Even in relational databases, Django can easily do hierarchical data models. http://science.nasa.gov/ is a good example of what can be done.

17 Packages
11 Features

Search & Filter

Utilities for implementing a modified pre-order traversal tree in django.

2,971
Stars
465
Forks
113
Usage
Py3
Status Production/Stable
Version 0.18.0
Updated 26 Aug 2025
License MIT-License
Commits
Features
Type: Adjacency list
Type: Nested set
Type: Materialized path
Uses native graph storage
Admin contrib support
Dependency Free
Type: Directed Acyclic Graph
Drop-in
Type: Closure Table
Type: Edge list
API-First support

Efficient tree implementations for Django

1,198
Stars
224
Forks
27
Usage
Py3
Status Production/Stable
Version 5.0.5
Updated 26 Apr 2026
License Apache-2.0
Commits
Features
Type: Adjacency list
Type: Nested set
Type: Materialized path
Uses native graph storage
Admin contrib support
Dependency Free
Type: Directed Acyclic Graph
Drop-in
Type: Closure Table
Type: Edge list
API-First support

:deciduous_tree: probably the best abstract model/admin for your tree based stuff.

798
Stars
38
Forks
3
Usage
Py3
Status Production/Stable
Version 0.24.0
Updated 17 Apr 2026
License Custom
Commits
Features
Type: Adjacency list
Type: Nested set
Type: Materialized path
Uses native graph storage
Admin contrib support
Dependency Free
Type: Directed Acyclic Graph
Drop-in
Type: Closure Table
Type: Edge list
API-First support

Adjacency-list trees for Django using recursive common table expressions. Supports PostgreSQL, sqlite, MySQL and MariaDB.

510
Stars
32
Forks
2
Usage
Py3
Status Unknown
Version 0.24.0
Updated 25 Mar 2026
License BSD-3-Clause
Commits
Features
Type: Adjacency list
Type: Nested set
Type: Materialized path
Uses native graph storage
Admin contrib support
Dependency Free
Type: Directed Acyclic Graph
Drop-in
Type: Closure Table
Type: Edge list
API-First support

Neomodel plugin for Django

310
Stars
61
Forks
1
Usage
Py3
Status Beta
Version 0.2.0
Updated 27 Jan 2025
License MIT
Commits
Features
Type: Adjacency list
Type: Nested set
Type: Materialized path
Uses native graph storage
Admin contrib support
Dependency Free
Type: Directed Acyclic Graph
Drop-in
Type: Closure Table
Type: Edge list
API-First support

An ltree extension implementation to support hierarchical tree-like data using the native Postgres extension ltree in django models

75
Stars
19
Forks
0
Usage
Py3
Status Beta
Version 0.6.0
Updated 11 Dec 2025
License MIT
Commits
Features
Type: Adjacency list
Type: Nested set
Type: Materialized path
Uses native graph storage
Admin contrib support
Dependency Free
Type: Directed Acyclic Graph
Drop-in
Type: Closure Table
Type: Edge list
API-First support

Directed Acyclic Graphs with a variety of methods for both Nodes and Edges, and multiple exports (NetworkX, Pandas, etc). This project is the foundation for a commercial product, so expect regular improvements. PR's and other contributions are welcomed.

53
Stars
6
Forks
2
Usage
Py3
Status Production/Stable
Version 2026.2.3
Updated 19 Feb 2026
License Apache-2.0
Commits
Features
Type: Adjacency list
Type: Nested set
Type: Materialized path
Uses native graph storage
Admin contrib support
Dependency Free
  NetworkX for exports, PostgreSQL
Type: Directed Acyclic Graph
Drop-in
Type: Closure Table
Type: Edge list
API-First support

Postgres LTree support for django

48
Stars
6
Forks
0
Usage
Py3
Status Production/Stable
Version 0.1.13
Updated 28 Apr 2026
License MIT
Commits
Features
Type: Adjacency list
Type: Nested set
Type: Materialized path
Uses native graph storage
Admin contrib support
Dependency Free
Type: Directed Acyclic Graph
Drop-in
Type: Closure Table
Type: Edge list
API-First support

A hybrid, high-performance, open-source framework for working with large trees in Django

36
Stars
5
Forks
0
Usage
Py3
Status Production/Stable
Version 3.2.10
Updated 9 Mar 2026
License Custom
Commits
Features
Type: Adjacency list
Type: Nested set
Type: Materialized path
 
V 3.x
Uses native graph storage
Admin contrib support
Dependency Free
Type: Directed Acyclic Graph
Drop-in
Type: Closure Table
 
V 2.x
Type: Edge list
API-First support

Showing 9 of 17 packages in this grid.

View All Packages

Features Being Compared

11 features

Type: Adjacency list

Type: Nested set

Type: Materialized path

Uses native graph storage

Admin contrib support

Django Admin contrib integration.

Dependency Free

Thirdparty depedency required for package.

Type: Directed Acyclic Graph

Drop-in

Doesn't require building models using utils provided within package. Works with previously created models.

Type: Closure Table

Type: Edge list

Is the graph or tree stored in the database as a list of edges from a parent node to a child node?

API-First support

API-First support means the backend is built to provide a complete, standalone API, enabling external systems or frontends to interact without relying on internal UI logic.