package ocamlgraph

  1. Overview
  2. Docs
A generic graph library for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocamlgraph-2.2.0.tbz
sha256=b0956210863cc24f480203ba3c2ef06dfae5579536a05744364e7de58822b230
sha512=257cdd5fb90337b3e3682cade1269c1d181f3124e569a731909f49bbfbe581ab529ac401472fb9ef57166ac34d8ebadfa6a32c93665f38f5a335982d5e5dc0e1

doc/ocamlgraph/Graph/Merge/B/argument-1-X/G/E/index.html

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 : t -> t -> int

Edges are directed.

type vertex = vertex
val src : t -> vertex

Edge origin.

val dst : t -> vertex

Edge destination.

Edges are labeled.

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

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

val label : t -> label

Get the label of an edge.