graphs 1.0.0 copy "graphs: ^1.0.0" to clipboard
graphs: ^1.0.0 copied to clipboard

Graph algorithms that operate on graphs in any representation

1.0.0 #

  • Migrate to null safety.
  • Breaking: Paths from shortestPath[s] are now returned as iterables to reduce memory consumption of the algorithm to O(n).

0.2.0 #

  • BREAKING shortestPath, shortestPaths and stronglyConnectedComponents now have one generic parameter and have replaced the key parameter with optional params: {bool equals(T key1, T key2), int hashCode(T key)}. This follows the pattern used in dart:collection classes HashMap and LinkedHashMap. It improves the usability and performance of the case where the source values are directly usable in a hash data structure.

0.1.3+1 #

  • Fixed a bug with non-identity key in shortestPath and shortestPaths.

0.1.3 #

  • Added shortestPath and shortestPaths functions.
  • Use HashMap and HashSet from dart:collection for stronglyConnectedComponents. Improves runtime performance.

0.1.2+1 #

  • Allow using non-dev Dart 2 SDK.

0.1.2 #

  • crawlAsync surfaces exceptions while crawling through the result stream rather than as uncaught asynchronous errors.

0.1.1 #

  • crawlAsync will now ignore nodes that are resolved to null.

0.1.0 #

  • Initial release with an implementation of stronglyConnectedComponents and crawlAsync.
94
likes
140
pub points
99%
popularity

Publisher

verified publishertools.dart.cn

Graph algorithms that operate on graphs in any representation

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on graphs