# fgl

> Martin Erwig's Functional Graph Library for Haskell

Source: https://talira.ai/catalog/fgl-jcn591zk
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / graph theory](https://talira.ai/categories/libraries/math/graph-theory), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^2][^3]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (BSD-3-Clause).
- Free tier: yes[^1]
- Backed by: [Martin Erwig](https://talira.ai/orgs/martin-erwig.md)

fgl, the Functional Graph Library, is a Haskell library that takes an inductive approach to representing and manipulating graphs. Martin Erwig wrote it originally, and his papers on the original website explain the approach, though the code may no longer match them. A companion package, fgl-arbitrary, adds QuickCheck Arbitrary instances for fgl graphs. Install it from Hackage as fgl.

## Links

- GitHub: https://github.com/haskell/fgl
- Docs: https://hackage.haskell.org/package/fgl

## Problems it solves

- work with graphs in Haskell in a purely functional way
- build and query graphs in Haskell without mutable state
- a graph library for my Haskell project

## Features

- inductive graph representation
- QuickCheck instances in the fgl-arbitrary package

## Trust

Overall: 0.30 out of 1.
Signals: maintenance 0.27, adoption 0.46, momentum 0.12, community 0.61, backing 0.30, extensibility 0.00.

- 204 GitHub stars
- 32 contributors
- backed by Martin Erwig

Warnings:

- last commit 6 months ago

## Sources

[^1]: https://github.com/haskell/fgl/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/haskell/fgl/blob/master/LICENSE (checked 29 Nov 2026)
[^3]: https://github.com/haskell/fgl/blob/master/fgl.cabal (checked 29 Nov 2026)
