@hackage topograph1.0.1
Directed acyclic graphs.
Categories
License
BSD-3-Clause
Maintainer
Oleg.Grenrus <oleg.grenrus@iki.fi>
Links
Versions
Installation
Tested Compilers
Dependencies (4)
- base >=4.12.0.0 && <4.22
- base-orphans ^>=0.9.2
- containers ^>=0.6.0.1 || ^>=0.7
- vector ^>=0.13.1.0 Show all…
Dependents (2)
@hackage/cabal-cache, @hackage/cabal-plan
Directed acyclic graphs can be sorted topographically. Existence of topographic ordering allows writing many graph algorithms efficiently. And many graphs, e.g. most dependency graphs are acyclic!
There are some algorithms built-in: dfs, transpose, transitive closure, transitive reduction... Some algorithms even become not-so-hard to implement, like a longest path!