package fix

All checked builds pass
  1. Overview
  2. Docs
Algorithmic building blocks for memoization, recursion, and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

archive.tar.gz
md5=0164bd9431c2290a676d0a0fb2b15009
sha512=ff47c6a6de992e718e1eae1364dd7c4cc4297cec4f6575d675dee0f4a80b79f413235df9467ecd29be2b6884c43b4410b129f5f2d0bc9919022a19901e0f3028

doc/fix/Fix/GraphNumbering/index.html

Module Fix.GraphNumberingSource

This module offers a facility for discovering and numbering the reachable vertices in a finite directed graph.

Sourcemodule Make (M : sig ... end) (G : sig ... end) : sig ... end

Make(M)(G) produces a numbering of the graph G, or more precisely, of the subset of the vertices of G that are reachable from the roots. The type of the vertices must be equipped with an implementation of imperative maps.

Sourcemodule ForNumberedType (T : sig ... end) (G : sig ... end) : sig ... end

ForNumberedType is a special case of Make where it suffices for the vertices of G to be numbered from 0 to n-1.

Sourcemodule ForOrderedType (T : Map.OrderedType) (G : sig ... end) : sig ... end

ForOrderedType is a special case of Make where it suffices for the vertices of G to be ordered.

Sourcemodule ForHashedType (T : Hashtbl.HashedType) (G : sig ... end) : sig ... end

ForHashedType is a special case of Make where it suffices for the vertices of G to be hashed.

Sourcemodule ForType (T : sig ... end) (G : sig ... end) : sig ... end

ForType is a special case of Make where the vertices of G can have arbitrary type. OCaml's built-in generic equality and hash functions are used.