Directed acyclic word graphs https://github.com/kawu/dawg-ord

Latest on Hackage:

See all snapshots dawg-ord appears in

BSD-3-Clause licensed by Jakub Waszczuk

Module documentation for

This version can be pinned in stack with:dawg-ord-,2524

The library implements directed acyclic word graphs (DAWGs) internally represented as minimal acyclic deterministic finite-state automata. The implemented version of DAWG can be seen as a map from sequences of alphabet symbols (keys) to values.

The library allows to build DAWGs over any symbols and values provided that they both have Ord instances (see the Data.DAWG.Ord module). It also provides a fast insert operation which can be used to construct DAWGs on-the-fly.