Coder Social home page Coder Social logo

fxfactorial / ocamlgraph Goto Github PK

View Code? Open in Web Editor NEW

This project forked from backtracking/ocamlgraph

0.0 2.0 0.0 12.34 MB

OCaml graph library

License: Other

C++ 0.03% OCaml 22.05% Standard ML 0.05% CSS 0.10% Shell 0.01% Makefile 0.13% TeX 15.48% PostScript 48.09% Gnuplot 0.02% Coq 14.07%

ocamlgraph's Introduction

OCamlgraph

OCamlgraph is a graph library for Ocaml. Its contribution is three-fold:

  1. 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.

  2. Then OCamlgraph provides several other graph implementations for those not satisfied with the one above. Some are persistent (imutable) 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 modules Persistent and Imperative 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.

  3. 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.

OCamlgraph is packaged as a single module Graph. Link is done as follows:

bytecode

ocamlc graph.cma <other files>

native code

ocamlopt graph.cmxa <other files>

Examples

You’ll find examples of OCamlgraph use in subdirectory examples/ (demo.ml, demo_planar.ml, color.ml, etc.). You can compile these programs with make examples. Corresponding binaries are produced in subdirectory bin/. You can also build them individually, e.g. make bin/demo.opt compiles examples/demo.ml.

Bug reports

Bug reports can be sent to

Sylvain Conchon <[email protected]>
Jean-Christophe Filliatre <[email protected]>
Julien Signoles <[email protected]>

ocamlgraph's People

Contributors

aubryta avatar backtracking avatar bobot avatar c-cube avatar drup avatar gisellemnr avatar mariojppereira avatar martin-neuhaeusser avatar rbonichon avatar rleonid avatar signoles avatar smolkaj avatar thizanne avatar vprevosto avatar waldyrious avatar yakobowski avatar yutopio avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.