graphviz-2999.20.0.2: Bindings to Graphviz for graph visualisation.

Copyright | (c) Matthew Sackman Ivan Lazar Miljenovic
License | 3-Clause BSD-style
Maintainer | Ivan.Miljenovic@gmail.com
Safe Haskell | None
Language | Haskell2010

Data.GraphViz

Contents

- Conversion from graphs to Dot format.
  - Specifying parameters.
    - Specifying clusters.
  - Converting graphs.
  - Pseudo-inverse conversion.
- Graph augmentation.
  - Customisable augmentation.
  - Quick augmentation.
  - Manual augmentation.
- Utility functions
- Re-exporting other modules.

Description

This is the top-level module for the graphviz library. It provides functions to convert `Graph`s into the Dot language used by the Graphviz suite of programs (as well as a limited ability to perform the reverse operation).

If you wish to construct a Haskell representation of a Dot graph yourself rather than using the conversion functions here, please see the Data.GraphViz.Types module as a starting point for how to do so.

Information about Graphviz and the Dot language can be found at: http://graphviz.org/

Synopsis

- data GraphvizParams n nl el cl l = Params {
  - isDirected :: Bool
  - globalAttributes :: [GlobalAttributes]
  - clusterBy :: (n, nl) -> NodeCluster cl (n, l)
  - isDotCluster :: cl -> Bool
  - clusterID :: cl -> GraphID
  - fmtCluster :: cl -> [GlobalAttributes]
  - fmtNode :: (n, l) -> Attributes
  - fmtEdge :: (n, n, el) -> Attributes
  }
- quickParams :: (Labellable nl, Labellable el) => GraphvizParams n nl el () nl
- defaultParams :: GraphvizParams n nl el cl nl
- nonClusteredParams :: GraphvizParams n nl el () nl
- blankParams :: GraphvizParams n nl el cl l
- setDirectedness :: (Ord el, Graph gr) => (GraphvizParams Node nl el cl l -> gr nl el -> a) -> GraphvizParams Node nl el cl l -> gr nl el -> a
- data NodeCluster c a
  - = N a
  - | C c (NodeCluster c a)
- type LNodeCluster cl l = NodeCluster cl (Node, l)
- graphToDot :: (Ord cl, Graph gr) => GraphvizParams Node nl el cl l -> gr nl el -> DotGraph Node
- graphElemsToDot :: (Ord cl, Ord n) => GraphvizParams n nl el cl l -> [(n, nl)] -> [(n, n, el)] -> DotGraph n
- dotToGraph :: (DotRepr dg Node, Graph gr) => dg Node -> gr Attributes Attributes
- type AttributeNode nl = (Attributes, nl)
- type AttributeEdge el = (Attributes, el)
- graphToGraph :: (Ord cl, Graph gr) => GraphvizParams Node nl el cl l -> gr nl el -> IO (gr (AttributeNode nl) (AttributeEdge el))
- dotizeGraph :: (Ord cl, Graph gr) => GraphvizParams Node nl el cl l -> gr nl el -> gr (AttributeNode nl) (AttributeEdge el)
- data EdgeID el
- addEdgeIDs :: Graph gr => gr nl el -> gr nl (EdgeID el)
- setEdgeIDAttribute :: (LEdge el -> Attributes) -> LEdge (EdgeID el) -> Attributes
- dotAttributes :: (Graph gr, PPDotRepr dg Node, FromGeneralisedDot dg Node) => Bool -> gr nl (EdgeID el) -> dg Node -> IO (gr (AttributeNode nl) (AttributeEdge el))
- augmentGraph :: (Graph gr, DotRepr dg Node) => gr nl (EdgeID el) -> dg Node -> gr (AttributeNode nl) (AttributeEdge el)
- preview :: (Ord el, Graph gr, Labellable nl, Labellable el) => gr nl el -> IO ()
- module Data.GraphViz.Types
- data DotSubGraph n = DotSG {
  - isCluster :: Bool
  - subGraphID :: Maybe GraphID
  - subGraphStmts :: DotStatements n
  }
- data DotStatements n = DotStmts {
  - attrStmts :: [GlobalAttributes]
  - subGraphs :: [DotSubGraph n]
  - nodeStmts :: [DotNode n]
  - edgeStmts :: [DotEdge n]
  }
- data DotGraph n = DotGraph {
  - strictGraph :: Bool
  - directedGraph :: Bool
  - graphID :: Maybe GraphID
  - graphStatements :: DotStatements n
  }
- module Data.GraphViz.Attributes
- module Data.GraphViz.Commands

# Conversion from graphs to Dot format.

## Specifying parameters.

A `GraphvizParams` value contains all the information necessary to manipulate `Graph`s with this library. As such, its components deal with:

- Whether to treat graphs as being directed or not;
- Which top-level `GlobalAttributes` values should be applied;
- How to define (and name) clusters;
- How to format clusters, nodes and edges.

Apart from not having to pass multiple values around, another advantage of using `GraphvizParams` over the previous approach is that there is no distinction between clustering and non-clustering variants of the same functions.

Example usages of `GraphvizParams` follow:

- Quickly visualise a graph using the default parameters. Note the usage of ``nonClusteredParams`` over ``defaultParams`` to avoid type-checking problems with the cluster type.

    defaultVis :: (Graph gr) => gr nl el -> DotGraph Node
    defaultVis = graphToDot nonClusteredParams

- As with `defaultVis`, but determine whether or not the graph is directed or undirected.

    checkDirectednessVis :: (Graph gr, Ord el) => gr nl el -> DotGraph Node
    checkDirectednessVis = setDirectedness graphToDot nonClusteredParams

- Clustering nodes based upon whether they are even or odd. We have the option of either constructing a `GraphvizParams` directly, or using ``blankParams``. Using the latter to avoid setting ``isDirected``:

    evenOdd :: (Graph gr, Ord el) => gr Int el -> DotGraph Node
    evenOdd = setDirectedness graphToDot params
      where
        params = blankParams { globalAttributes = []
                             , clusterBy        = clustBy
                             , clusterID        = Num . Int
                             , fmtCluster       = clFmt
                             , fmtNode          = const []
                             , fmtEdge          = const []
                             }
        clustBy (n,l) = C (n `mod` 2) $ N (n,l)
        clFmt m = [GraphAttrs [toLabel $ "n == " ++ show m ++ " (mod 2)"]]

For more examples, see the source of `dotizeGraph` and `preview`.

data GraphvizParams n nl el cl l #

Defines the parameters used to convert a `Graph` into a `DotRepr`.

A value of type ``GraphvizParams` n nl el cl l` indicates that the `Graph` has a node type of `n`, node labels of type `nl`, edge labels of type `el`, corresponding clusters of type `cl` and after clustering the nodes have a label of type `l` (which may or may not be the same as `nl`).

The tuples in the function types represent labelled nodes (for `(n,nl)` and `(n,l)`) and labelled edges (`(n,n,el)`; the value `(f,t,ftl)` is an edge from `f` to `l` with a label of `ftl`). These correspond to `LNode` and `LEdge` in FGL graphs.

The clustering in `clusterBy` can be to arbitrary depth.

Note that the term "cluster" is slightly conflated here: in terms of `GraphvizParams` values, a cluster is a grouping of nodes; the `isDotCluster` function lets you specify whether it is a cluster in the Dot sense or just a sub-graph.

Constructors

Params |
Fields isDirected :: Bool `True` if the graph is directed; `False` otherwise. globalAttributes :: [GlobalAttributes] The top-level global `Attributes` for the entire graph. clusterBy :: (n, nl) -> NodeCluster cl (n, l) A function to specify which cluster a particular node is in. isDotCluster :: cl -> Bool Is this "cluster" actually a cluster, or just a sub-graph? clusterID :: cl -> GraphID The name/identifier for a cluster. fmtCluster :: cl -> [GlobalAttributes] Specify which global attributes are applied in the given cluster. fmtNode :: (n, l) -> Attributes The specific `Attributes` for a node. fmtEdge :: (n, n, el) -> Attributes The specific `Attributes` for an edge.

quickParams :: (Labellable nl, Labellable el) => GraphvizParams n nl el () nl #

Especially useful for quick explorations in ghci, this is a "do what I mean" set of parameters that prints the specified labels of a non-clustered graph.

defaultParams :: GraphvizParams n nl el cl nl #

A default `GraphvizParams` value which assumes the graph is directed, contains no clusters and has no `Attribute`s set.

If you wish to have the labels of the nodes to have a different type after applying `clusterBy` from before clustering, then you will have to specify your own `GraphvizParams` value from scratch (or use `blankParams`).

If you use a custom `clusterBy` function (which if you actually want clusters you should) then you should also override the (nonsensical) default `clusterID`.

nonClusteredParams :: GraphvizParams n nl el () nl #

A variant of `defaultParams` that enforces that the clustering type is `'()'` (i.e.: no clustering); this avoids problems when using `defaultParams` internally within a function without any constraint on what the clustering type is.

blankParams :: GraphvizParams n nl el cl l #

A `GraphvizParams` value where every field is set to ``undefined``. This is useful when you have a function that will set some of the values for you (e.g. `setDirectedness`) but you don't want to bother thinking of default values to set in the meantime. This is especially useful when you are programmatically setting the clustering function (and as such do not know what the types might be).

setDirectedness :: (Ord el, Graph gr) => (GraphvizParams Node nl el cl l -> gr nl el -> a) -> GraphvizParams Node nl el cl l -> gr nl el -> a #

Determine if the provided `Graph` is directed or not and set the value of `isDirected` appropriately.

### Specifying clusters.

data NodeCluster c a #

Define into which cluster a particular node belongs. Clusters can be nested to arbitrary depth.

Constructors

N a | Indicates the actual Node in the Graph.
C c (NodeCluster c a) | Indicates that the `NodeCluster` is in the Cluster c.

Instances

(Show a, Show c) => Show (NodeCluster c a) # |
Instance details Defined in Data.GraphViz.Algorithms.Clustering Methods showsPrec :: Int -> NodeCluster c a -> ShowS # show :: NodeCluster c a -> String # showList :: [NodeCluster c a] -> ShowS #

type LNodeCluster cl l = NodeCluster cl (Node, l) #

An alias for `NodeCluster` when dealing with FGL graphs.

## Converting graphs.

graphToDot :: (Ord cl, Graph gr) => GraphvizParams Node nl el cl l -> gr nl el -> DotGraph Node #

Convert a graph to Dot format, using the specified parameters to cluster the graph, etc.

graphElemsToDot :: (Ord cl, Ord n) => GraphvizParams n nl el cl l -> [(n, nl)] -> [(n, n, el)] -> DotGraph n #

As with `graphToDot`, but this allows you to easily convert other graph-like formats to a Dot graph as long as you can get a list of nodes and edges from it.

## Pseudo-inverse conversion.

dotToGraph :: (DotRepr dg Node, Graph gr) => dg Node -> gr Attributes Attributes #

A pseudo-inverse to `graphToDot`; "pseudo" in the sense that the original node and edge labels aren't able to be reconstructed.

# Graph augmentation.

The following functions provide support for passing a `Graph` through the appropriate `GraphvizCommand` to augment the `Graph` by adding positional information, etc.

A `CustomAttribute` is used to distinguish multiple edges between two nodes from each other.

Note that the reason that most of these functions do not have `unsafePerformIO` applied to them is because if you set a global `Attribute` of:

       Start (StartStyle RandomStyle)

then it will not necessarily be referentially transparent (ideally, no matter what the seed is, it will still eventually be drawn to the same optimum, but this can't be guaranteed). As such, if you are sure that you're not using such an `Attribute`, then you should be able to use `unsafePerformIO` directly in your own code.

type AttributeNode nl = (Attributes, nl) #

Augment the current node label type with the `Attributes` applied to that node.

type AttributeEdge el = (Attributes, el) #

Augment the current edge label type with the `Attributes` applied to that edge.

## Customisable augmentation.

graphToGraph :: (Ord cl, Graph gr) => GraphvizParams Node nl el cl l -> gr nl el -> IO (gr (AttributeNode nl) (AttributeEdge el)) #

Run the appropriate Graphviz command on the graph to get positional information and then combine that information back into the original graph.

## Quick augmentation.

dotizeGraph :: (Ord cl, Graph gr) => GraphvizParams Node nl el cl l -> gr nl el -> gr (AttributeNode nl) (AttributeEdge el) #

This is a "quick-and-dirty" graph augmentation function that sets no `Attributes` and thus should be referentially transparent and is wrapped in `unsafePerformIO`.

Note that the provided `GraphvizParams` is only used for `isDirected`, `clusterBy` and `clusterID`.

## Manual augmentation.

This section allows you to manually augment graphs by providing fine-grained control over the augmentation process (the standard augmentation functions compose these together). Possible reasons for manual augmentation are:

- Gain access to the intermediary `DotRepr` used.
- Convert the default `DotGraph` to a `GDotGraph` (found in Data.GraphViz.Types.Generalised) so as to have greater control over the generated Dot code.
- Use a specific `GraphvizCommand` rather than the default.

Note that whilst these functions provide you with more control, you must be careful how you use them: if you use the wrong `DotRepr` for a `Graph`, then the behaviour of `augmentGraph` (and all functions that use it) is undefined. The main point is to make sure that the defined `DotNode` and `DotEdge` values aren't removed (or their ID values - or the `Attributes` for the `DotEdge`s - altered) to ensure that it is possible to match up the nodes and edges in the `Graph` with those in the `DotRepr`.

data EdgeID el #

Used to augment an edge label with a unique identifier.

Instances

Eq el => Eq (EdgeID el) # |
Instance details Defined in Data.GraphViz Methods (==) :: EdgeID el -> EdgeID el -> Bool # (/=) :: EdgeID el -> EdgeID el -> Bool #
Ord el => Ord (EdgeID el) # |
Instance details Defined in Data.GraphViz Methods compare :: EdgeID el -> EdgeID el -> Ordering # (<) :: EdgeID el -> EdgeID el -> Bool # (<=) :: EdgeID el -> EdgeID el -> Bool # (>) :: EdgeID el -> EdgeID el -> Bool # (>=) :: EdgeID el -> EdgeID el -> Bool # max :: EdgeID el -> EdgeID el -> EdgeID el # min :: EdgeID el -> EdgeID el -> EdgeID el #
Show el => Show (EdgeID el) # |
Instance details Defined in Data.GraphViz Methods showsPrec :: Int -> EdgeID el -> ShowS # show :: EdgeID el -> String # showList :: [EdgeID el] -> ShowS #

addEdgeIDs :: Graph gr => gr nl el -> gr nl (EdgeID el) #

Add unique edge identifiers to each label. This is useful for when multiple edges between two nodes need to be distinguished.

setEdgeIDAttribute :: (LEdge el -> Attributes) -> LEdge (EdgeID el) -> Attributes #

Add a custom attribute to the list of attributes containing the value of the unique edge identifier.

dotAttributes :: (Graph gr, PPDotRepr dg Node, FromGeneralisedDot dg Node) => Bool -> gr nl (EdgeID el) -> dg Node -> IO (gr (AttributeNode nl) (AttributeEdge el)) #

Pass the `DotRepr` through the relevant command and then augment the `Graph` that it came from.

augmentGraph :: (Graph gr, DotRepr dg Node) => gr nl (EdgeID el) -> dg Node -> gr (AttributeNode nl) (AttributeEdge el) #

Use the `Attributes` in the provided `DotGraph` to augment the node and edge labels in the provided `Graph`. The unique identifiers on the edges are also stripped off.

Please note that the behaviour for this function is undefined if the `DotGraph` does not come from the original `Graph` (either by using a conversion function or by passing the result of a conversion function through a `GraphvizCommand` via the `DotOutput` or similar).

# Utility functions

preview :: (Ord el, Graph gr, Labellable nl, Labellable el) => gr nl el -> IO () #

Quickly visualise a graph using the `Xlib` `GraphvizCanvas`. If your label types are not (and cannot) be instances of `Labellable`, you may wish to use `gmap`, `nmap` or `emap` to set them to a value such as `""`.

# Re-exporting other modules.

module Data.GraphViz.Types

data DotSubGraph n #

Constructors

DotSG |
Fields isCluster :: Bool subGraphID :: Maybe GraphID subGraphStmts :: DotStatements n

Instances

Functor DotSubGraph # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods fmap :: (a -> b) -> DotSubGraph a -> DotSubGraph b # (<$) :: a -> DotSubGraph b -> DotSubGraph a #
Eq n => Eq (DotSubGraph n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods (==) :: DotSubGraph n -> DotSubGraph n -> Bool # (/=) :: DotSubGraph n -> DotSubGraph n -> Bool #
Ord n => Ord (DotSubGraph n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods compare :: DotSubGraph n -> DotSubGraph n -> Ordering # (<) :: DotSubGraph n -> DotSubGraph n -> Bool # (<=) :: DotSubGraph n -> DotSubGraph n -> Bool # (>) :: DotSubGraph n -> DotSubGraph n -> Bool # (>=) :: DotSubGraph n -> DotSubGraph n -> Bool # max :: DotSubGraph n -> DotSubGraph n -> DotSubGraph n # min :: DotSubGraph n -> DotSubGraph n -> DotSubGraph n #
Read n => Read (DotSubGraph n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods readsPrec :: Int -> ReadS (DotSubGraph n) # readList :: ReadS [DotSubGraph n] # readPrec :: ReadPrec (DotSubGraph n) # readListPrec :: ReadPrec [DotSubGraph n] #
Show n => Show (DotSubGraph n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods showsPrec :: Int -> DotSubGraph n -> ShowS # show :: DotSubGraph n -> String # showList :: [DotSubGraph n] -> ShowS #
ParseDot n => ParseDot (DotSubGraph n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods parseUnqt :: Parse (DotSubGraph n) # parse :: Parse (DotSubGraph n) # parseUnqtList :: Parse [DotSubGraph n] # parseList :: Parse [DotSubGraph n] #
PrintDot n => PrintDot (DotSubGraph n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods unqtDot :: DotSubGraph n -> DotCode # toDot :: DotSubGraph n -> DotCode # unqtListToDot :: [DotSubGraph n] -> DotCode # listToDot :: [DotSubGraph n] -> DotCode #

data DotStatements n #

Constructors

DotStmts |
Fields attrStmts :: [GlobalAttributes] subGraphs :: [DotSubGraph n] nodeStmts :: [DotNode n] edgeStmts :: [DotEdge n]

Instances

Functor DotStatements # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods fmap :: (a -> b) -> DotStatements a -> DotStatements b # (<$) :: a -> DotStatements b -> DotStatements a #
Eq n => Eq (DotStatements n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods (==) :: DotStatements n -> DotStatements n -> Bool # (/=) :: DotStatements n -> DotStatements n -> Bool #
Ord n => Ord (DotStatements n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods compare :: DotStatements n -> DotStatements n -> Ordering # (<) :: DotStatements n -> DotStatements n -> Bool # (<=) :: DotStatements n -> DotStatements n -> Bool # (>) :: DotStatements n -> DotStatements n -> Bool # (>=) :: DotStatements n -> DotStatements n -> Bool # max :: DotStatements n -> DotStatements n -> DotStatements n # min :: DotStatements n -> DotStatements n -> DotStatements n #
Read n => Read (DotStatements n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods readsPrec :: Int -> ReadS (DotStatements n) # readList :: ReadS [DotStatements n] # readPrec :: ReadPrec (DotStatements n) # readListPrec :: ReadPrec [DotStatements n] #
Show n => Show (DotStatements n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods showsPrec :: Int -> DotStatements n -> ShowS # show :: DotStatements n -> String # showList :: [DotStatements n] -> ShowS #
ParseDot n => ParseDot (DotStatements n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods parseUnqt :: Parse (DotStatements n) # parse :: Parse (DotStatements n) # parseUnqtList :: Parse [DotStatements n] # parseList :: Parse [DotStatements n] #
PrintDot n => PrintDot (DotStatements n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods unqtDot :: DotStatements n -> DotCode # toDot :: DotStatements n -> DotCode # unqtListToDot :: [DotStatements n] -> DotCode # listToDot :: [DotStatements n] -> DotCode #

data DotGraph n #

A Dot graph in canonical form.

Constructors

DotGraph |
Fields strictGraph :: Bool If `True`, no multiple edges are drawn. directedGraph :: Bool graphID :: Maybe GraphID graphStatements :: DotStatements n

Instances

Functor DotGraph # | Assumed to be an injective mapping function.
Instance details Defined in Data.GraphViz.Types.Canonical Methods fmap :: (a -> b) -> DotGraph a -> DotGraph b # (<$) :: a -> DotGraph b -> DotGraph a #
(Ord n, PrintDot n, ParseDot n) => PPDotRepr DotGraph n # |
Instance details Defined in Data.GraphViz.Types
(Ord n, ParseDot n) => ParseDotRepr DotGraph n # |
Instance details Defined in Data.GraphViz.Types
(Ord n, PrintDot n) => PrintDotRepr DotGraph n # |
Instance details Defined in Data.GraphViz.Types
Ord n => DotRepr DotGraph n # |
Instance details Defined in Data.GraphViz.Types Methods fromCanonical :: DotGraph n -> DotGraph n # getID :: DotGraph n -> Maybe GraphID # setID :: GraphID -> DotGraph n -> DotGraph n # graphIsDirected :: DotGraph n -> Bool # setIsDirected :: Bool -> DotGraph n -> DotGraph n # graphIsStrict :: DotGraph n -> Bool # setStrictness :: Bool -> DotGraph n -> DotGraph n # mapDotGraph :: DotRepr DotGraph n' => (n -> n') -> DotGraph n -> DotGraph n' # graphStructureInformation :: DotGraph n -> (GlobalAttributes, ClusterLookup) # nodeInformation :: Bool -> DotGraph n -> NodeLookup n # edgeInformation :: Bool -> DotGraph n -> [DotEdge n] # unAnonymise :: DotGraph n -> DotGraph n #
Ord n => FromGeneralisedDot DotGraph n # |
Instance details Defined in Data.GraphViz.Types.Generalised Methods fromGeneralised :: DotGraph0 n -> DotGraph n #
Eq n => Eq (DotGraph n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods (==) :: DotGraph n -> DotGraph n -> Bool # (/=) :: DotGraph n -> DotGraph n -> Bool #
Ord n => Ord (DotGraph n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods compare :: DotGraph n -> DotGraph n -> Ordering # (<) :: DotGraph n -> DotGraph n -> Bool # (<=) :: DotGraph n -> DotGraph n -> Bool # (>) :: DotGraph n -> DotGraph n -> Bool # (>=) :: DotGraph n -> DotGraph n -> Bool # max :: DotGraph n -> DotGraph n -> DotGraph n # min :: DotGraph n -> DotGraph n -> DotGraph n #
Read n => Read (DotGraph n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods readsPrec :: Int -> ReadS (DotGraph n) # readList :: ReadS [DotGraph n] # readPrec :: ReadPrec (DotGraph n) # readListPrec :: ReadPrec [DotGraph n] #
Show n => Show (DotGraph n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods showsPrec :: Int -> DotGraph n -> ShowS # show :: DotGraph n -> String # showList :: [DotGraph n] -> ShowS #
ParseDot n => ParseDot (DotGraph n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods parseUnqt :: Parse (DotGraph n) # parse :: Parse (DotGraph n) # parseUnqtList :: Parse [DotGraph n] # parseList :: Parse [DotGraph n] #
PrintDot n => PrintDot (DotGraph n) # |
Instance details Defined in Data.GraphViz.Types.Canonical Methods unqtDot :: DotGraph n -> DotCode # toDot :: DotGraph n -> DotCode # unqtListToDot :: [DotGraph n] -> DotCode # listToDot :: [DotGraph n] -> DotCode #

module Data.GraphViz.Attributes

module Data.GraphViz.Commands