happy-dot-1.0.0.0: Parser for dot made with happy.

LicenseGPL-3
MaintainerMarcelo Garlet Millani <marcelogmillani@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Language.Dot.Utils

Description

Convenience functions for working with DOT.

Synopsis

Documentation

adjacency :: (a, b, c, [Statement]) -> ([GraphElement], [GraphElement]) Source #

Representation of a graph as a list of nodes and a list of edges. Nodes and edges may occur several times on each list.

adjacencyToDot :: Bool -> Maybe [Char] -> [GraphElement] -> [Char] Source #

Converts a graph represented as a list of nodes and edges to the DOT format.