[Haskell-cafe] Collections

Jon Harrop jon at ffconsultancy.com
Wed Jun 20 15:07:52 EDT 2007

On Wednesday 20 June 2007 19:42:59 Andrew Coppin wrote:
> But what kind of thing would you use a general graph for?

Connectivity in networks, being anything from computers on the internet to 
atoms in a molecule.

Most graphs are best represented as sum types (and abstract references, like 
identifiers) in FPLs like Haskell though, rather than using a more general 
representation. Abstract syntax trees in compilers and interpreters, and 
scene graphs in computer graphics being two obvious examples.

Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The OCaml Journal

More information about the Haskell-Cafe mailing list