drathier/elm-graph/2.0.0

NOTE: this package is not compatible with Elm 0.19.1

Graph.Random

Graph.Random provides graph functions that require randomness to work. Note that this module uses Random.Pcg rather than the standard library Random.

Elm-test fuzzers

topologicalSortFuzzer : Graph comparable data -> Fuzzer (List comparable)

Elm-test fuzzer that generates random topological sortings of a directed acyclic graph. Crashes if the graph contains cycles.

Random.Pcg

randomTopologicalSort : Graph comparable data -> Generator (List comparable)

Generate a random topological sorting of a directed acyclic graph. Crashes if the graph contains cycles.