[Haskell-cafe] ANN: diagrams 0.4

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Tue Oct 25 22:00:50 CEST 2011


On 26 October 2011 02:17, Rustom Mody <rustompmody at gmail.com> wrote:
>
> In the Data.GraphViz.Types.Generalised page you have the starting line:
>
> It is sometimes useful to be able to manipulate a Dot graph as an actual
> graph. This representation lets you do so...
>
> Evidently some other context is needed to understand this line?
> [Sorry if I am dense]

It means that you can treat it as a graph data structure: add/delete
nodes/edges, get neighbours of a node, etc.  Whereas if you wanted to
delete a node from the other representations, you would manually have
to traverse the entire data structure explicitly to delete that node
and any edge it may be in.

The use case is is for manipulating existing Dot code better;
generally speaking, if you are converting data _into_ a Dot graph,
then you would do any such manipulations before you do the
conversions.

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com



More information about the Haskell-Cafe mailing list