package containers-data

  1. Overview
  2. Docs
A set of advanced datatypes for containers

Install

dune-project
 Dependency

Authors

Maintainers

Sources

containers-3.18.tbz
sha256=52eeff91ce42b52305e6aaa8a58b88ce8f0a5a984199e59ca7e2fd9ebabe61d7
sha512=dc7337e6cbc9850542c7c9228d3bcb4e4add57a55e2a2992f21fb4761b3e10a68ef1d57ca37a7f5b303fc875fe3df5ecb69dbf2930bfcd1561ce03f7ae83e24b

doc/containers-data/CCGraph/module-type-MAP/index.html

Module type CCGraph.MAPSource

Sourcetype vertex
Sourcetype 'a t
Sourceval as_graph : 'a t -> (vertex, 'a) graph

Graph view of the map.

Sourceval empty : 'a t
Sourceval add_edge : vertex -> 'a -> vertex -> 'a t -> 'a t
Sourceval remove_edge : vertex -> vertex -> 'a t -> 'a t
Sourceval add : vertex -> 'a t -> 'a t

Add a vertex, possibly with no outgoing edge.

Sourceval remove : vertex -> 'a t -> 'a t

Remove the vertex and all its outgoing edges. Edges that point to the vertex are NOT removed, they must be manually removed with remove_edge.

Sourceval union : 'a t -> 'a t -> 'a t
Sourceval vertices : _ t -> vertex iter
Sourceval vertices_l : _ t -> vertex list
Sourceval of_list : (vertex * 'a * vertex) list -> 'a t
Sourceval add_list : (vertex * 'a * vertex) list -> 'a t -> 'a t
Sourceval to_list : 'a t -> (vertex * 'a * vertex) list
Sourceval of_iter : (vertex * 'a * vertex) iter -> 'a t
  • since 2.8
Sourceval add_iter : (vertex * 'a * vertex) iter -> 'a t -> 'a t
  • since 2.8
Sourceval to_iter : 'a t -> (vertex * 'a * vertex) iter
  • since 2.8