# graphs

> Graph algorithms for Dart that work on any graph representation

Source: https://talira.ai/catalog/graphs-vhknca09
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / graph analysis](https://talira.ai/categories/libraries/math/graph-analysis), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^2]

graphs is the Dart team's package of graph algorithms that don't assume a particular way of representing a graph: each algorithm is a top-level function that takes callbacks, such as an edges callback giving a node's neighbours and optional equals and hashCode callbacks, so an adjacency list, a tree of nodes or any other structure can be passed in. It provides shortest paths, topological sort with cycle detection, strongly connected components, transitive closure and asynchronous crawling of graphs whose edges resolve as futures.

## Links

- GitHub: https://github.com/dart-lang/tools
- Docs: https://pub.dev/documentation/graphs/latest/

## Problems it solves

- work out a build order from dependencies in my Dart project
- find the shortest route between two nodes in my own graph structure in Dart
- detect cycles in a dependency graph in Dart

## Features

- shortest path and shortest paths
- topological sort with cycle detection
- strongly connected components
- transitive closure
- asynchronous graph crawling (crawlAsync)
- works on any graph representation through callbacks

## Trust

Overall: 0.63 out of 1.
Signals: maintenance 1.00, adoption 0.42, momentum 0.17, community 0.99, backing 0.55, extensibility 0.00.

- last commit 3 days ago
- 200 commits in the last 90 days
- latest release api_summary-v1.3.1 3 days ago
- 123 GitHub stars
- 302 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Sources

[^1]: https://github.com/dart-lang/tools/blob/main/pkgs/graphs/LICENSE (checked 27 Nov 2026)
[^2]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
