Back to all databases

pg_petgraph

A PostgreSQL extension that exposes graph algorithms as plain SQL functions. Each function takes arrays of source and target node ids and returns a table, covering PageRank, betweenness, closeness and eigenvector centrality, strongly and weakly connected components, Louvain community detection, Dijkstra, topological sort and cycle detection.

First released
July 2026
License
MIT
Built with
Rust

Details

Vendor
alitrack
Type
Other
Kind
Extension
Category
Emerging
License
MIT
Language
Rust
Query Languages
SQL
Sources 3 references

License MIT

SPDX identifier as classified by GitHub from the repository licence file.

Released 2026-07

Repository creation date; the first tag, v0.1.0, was published the same day.

Language Rust

The README states the extension is written in Rust with pgrx and petgraph.

  • Graph algorithms for PostgreSQL, written in Rust
    README.md · reviewed 2026-10-27