# libgraph

> Graph data structure library for Elixir, with a priority queue and DOT export

Source: https://talira.ai/catalog/libgraph-1g4jrs5e
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 / elixir](https://talira.ai/categories/languages/elixir)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Backed by: [Paul Schoenfelder](https://talira.ai/orgs/paul-schoenfelder.md)

libgraph is an Elixir library with a Graph data structure for directed and undirected graphs, built as a more idiomatic alternative to Erlang's :digraph: graphs are built and changed in a pipeline, and every query takes the graph as its first argument. It also includes a PriorityQueue tuned for graph algorithms, reducers for mapping over a graph, and a Serializer behaviour with a Graphviz DOT serializer built in. Install it from Hex as libgraph.

## Links

- GitHub: https://github.com/bitwalker/libgraph
- Docs: https://hexdocs.pm/libgraph

## Problems it solves

- model dependencies between items as a graph in my Elixir app
- a graph data structure in Elixir nicer to use than :digraph
- export my Elixir graph to Graphviz DOT

## Features

- directed and undirected graphs with an idiomatic Elixir API
- PriorityQueue oriented towards graphs
- reducers for mapping over a graph
- Graphviz DOT serializer

## Limitations

- By default vertices are identified by a 32-bit hash, and a collision silently merges distinct vertices unless you pass a vertex_identifier[^1]
- Its tests don't yet fully cover undirected graphs, its author says[^1]

## Trust

Overall: 0.52 out of 1.
Signals: maintenance 0.81, adoption 0.55, momentum 0.23, community 0.60, backing 0.30, extensibility 0.00.

- last commit 26 days ago
- 32 commits in the last 90 days
- latest release 0.17.1 26 days ago
- 571 GitHub stars
- 30 contributors
- backed by Paul Schoenfelder

## Sources

[^1]: https://github.com/bitwalker/libgraph/blob/main/README.md (checked 29 Nov 2026)
[^2]: https://github.com/bitwalker/libgraph/blob/main/LICENSE (checked 29 Nov 2026)
