jon.recoil.org

Module G.E

Edges have type E.t and are labeled with type E.label. src (resp. dst) returns the origin (resp. the destination) of a given edge.

Edges are ORDERED_TYPE.

type t
val compare : E.t -> E.t -> int

Edges are directed.

type vertex = vertex
val src : E.t -> E.vertex

Edge origin.

val dst : E.t -> E.vertex

Edge destination.

Edges are labeled.

type label
val create : E.vertex -> E.label -> E.vertex -> E.t

create v1 l v2 creates an edge from v1 to v2 with label l

val label : E.t -> E.label

Get the label of an edge.