https://github.com/EasyCrypt/easycrypt
Raw File
Tip revision: 367513e813151e4b06c42296c529c0d9277a90e4 authored by Manuel Barbosa on 15 November 2022, 18:15:46 UTC
Quantum version of Means
Tip revision: 367513e
ecTypeClass.mli
(* -------------------------------------------------------------------- *)
open EcPath

type node = path

type graph
type nodes

exception CycleDetected

module Graph : sig
  val empty : graph
  val add : src:node -> dst:node -> graph -> graph
  val has_path : src:node -> dst:node -> graph -> bool
  val dump : graph -> string
end

module Nodes : sig
  val empty : graph -> nodes
  val add : node -> nodes -> nodes
  val toset : nodes -> Sp.t
  val reduce : Sp.t -> graph -> Sp.t
end
back to top