On 26 October 2011 02:17, Rustom Mody <rustompm...@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.miljeno...@gmail.com
IvanMiljenovic.wordpress.com

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to