backtracking/ocamlgraph
Fork: 60 Star: 233 (更新于 2024-11-29 02:34:18)
license: NOASSERTION
Language: OCaml .
OCaml graph library
最后发布版本: 2.1.0 ( 2023-08-30 16:44:59)
OCamlgraph
OCamlgraph is a graph library for OCaml. Its contribution is three-fold:
-
It provides an easy-to-use graph implementation together with several operations and algorithms over graphs, in
Graph.Pack.Digraph
. It is a reasonably efficient imperative data structure for directed graphs with vertices and edges labeled with integers.Have a look at this module first in order to get an overview of what this library provides. See also
demo.ml
. -
Then OCamlgraph provides several other graph implementations for those not satisfied with the one above. Some are persistent (immutable) and other imperative (mutable). Some are directed and other are not. Some have labels for vertices, or labels for edges, or both. Some have abstract types for vertices. etc.
See interface
Sig
for the graph signatures and modulesPersistent
andImperative
for the implementations.These implementations are written as functors: you give the types of vertices labels, edge labels, etc. and you get the data structure as a result.
-
Finally, OCamlgraph provides several classic operations and algorithms over graphs. They are also written as functors i.e. independently of the data structure for graphs. One consequence is that you can define your own data structure for graphs and yet re-use all the algorithms from this library -- you only need to provide a few operations such as iterating over all vertices, over the successors of a vertex, etc.
Documentation
https://backtracking.github.io/ocamlgraph/
Examples
You'll find examples of OCamlgraph use in subdirectory examples/ (demo.ml, demo_planar.ml, color.ml, etc.).
Bug reports
最近版本更新:(数据更新于 2024-09-24 16:37:06)
2023-08-30 16:44:59 2.1.0
2020-10-02 21:49:20 2.0.0
2017-10-17 14:27:05 v1.8.8
2016-04-12 14:43:43 v1.8.7
backtracking/ocamlgraph同语言 OCaml最近更新仓库
2024-09-10 20:49:27 c-cube/ocaml-containers
2024-09-04 16:25:47 mirleft/ocaml-tls
2024-06-29 16:58:29 ocaml/ocamlbuild
2024-06-17 17:04:46 ocaml/dune
2024-05-26 22:10:33 ocsigen/js_of_ocaml
2024-05-13 20:27:08 ocaml/ocaml