package bap-std
Graph edges
Semantics of operations is denoted using mathematical model, described in Graph
interface.
type t = edge
type node = node
type graph = t
type label = edge
create x y l
creates an edge connecting nodes x
and y
labeled with a a given label l
insert e g
returns a graph g'
with a set of edges extended with edge e
. If src e
or dst e
wasn't in the set of nodes N
, then it is extended as well, so that axioms of graph are preserved.
Postconditions:
- E(g') = E(g) ∪ {e}.
update e l g
if edge e
exists in graph g
then return a new graph g'
in which edge e
is associated with label l
. Otherwise return g
unchanged.
Postcondition:
- E(g) ⊆ E(g') - N(g) ⊆ N(g') - e ∉ E(g) → e ∉ E(g'). - e ∈ E(g) → ε(g')e = l.
remove e g
returns a graph g'
that doesn't contain edge e
.
Postconditions:
- E(g') = E(g) \ {e}.
include Regular.Std.Opaque.S with type t := t
include Core_kernel.Comparable.S with type t := t
include Base.Comparable.S with type t := t
val comparator : (t, comparator_witness) Base__Comparator.comparator
module Map :
Core_kernel.Map.S
with type Key.t = t
with type Key.comparator_witness = comparator_witness
module Set :
Core_kernel.Set.S
with type Elt.t = t
with type Elt.comparator_witness = comparator_witness
include Core_kernel.Hashable.S with type t := t
module Table : Core_kernel.Hashtbl.S with type key = t
module Hash_set : Core_kernel.Hash_set.S with type elt = t
module Hash_queue : Core_kernel.Hash_queue.S with type key = t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>