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 http://www.ffconsultancy.com/products/ocaml_journal/?e _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe