Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] OCaml code/algorithms for displaying directed graphs
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] OCaml code/algorithms for displaying directed graphs
On Tue, 28 Sep 2004, Richard Jones wrote:
> I have a directed graph (actually, links between web-pages).  I'd like
> to display it "as planar as possible".  Are there any OCaml tools or
> libraries which I can use?  The nearest I've found is ocamlgraph which
> looks nice but doesn't seem to deal with the display side of things.

As others have already mentioned, Graphviz (the "dot"-utility) should
provide the layout functionality you need for your graphs.  If you need
an example of how this can be used from OCaml, just take a look at the
POMAP-library.  It uses "dot" to display partially ordered maps:

  http://www.oefai.at/~markus/home/ocaml_sources.html#POMAP

Regards,
Markus

-- 
Markus Mottl          http://www.oefai.at/~markus          markus@oefai.at