package zelus

  1. Overview
  2. Docs
A synchronous language with ODEs

Install

dune-project
 Dependency

Authors

Maintainers

Sources

2.1.tar.gz
sha256=cb0f7bacc33a4bb425683e2def67359fcf6d402545a32f7f953c4822a9a01862
md5=83fb886e4b14ce286e7a6eb59248be4b

doc/zelus.zlcompilerlibs/Graph/index.html

Module Graph

type index = int
module S : sig ... end
module E : sig ... end
type 'a graph = {
  1. outputs : S.t;
  2. succ : S.t E.t;
  3. prec : S.t E.t;
  4. containt : 'a E.t;
  5. nodes : S.t;
}
type error =
  1. | Cycle of index list
exception Error of error
val empty : 'a graph
val add : E.key -> 'a -> 'a graph -> 'a graph
val add_before : S.t -> S.t -> 'a graph -> 'a graph
val is_before : 'a graph -> E.key -> S.elt -> bool
val successors : E.key -> 'a graph -> S.t
val containt : E.key -> 'a graph -> 'a
val outputs : 'a graph -> 'a graph
val acyclic : 'a graph -> unit

Well formation of a graph

val transitive_reduction : 'a graph -> 'a graph

transitive reduction for an acyclic graph

val topological : 'a graph -> 'a list
val print : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a graph -> unit

Print

OCaml

Innovation. Community. Security.