Copyright | (c) Hans-Jürgen Guth, 2014 |
---|---|
License | LGPL |
Maintainer | juergen.software@freea2a.de |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
The Functions of this module enables you to generate FGL-Graphs for the haskell module graphviz.
- mkVizGraph :: DirGraph a -> VizGraph a
- mkGraphBeginEnd :: DirGraph a -> State (VizGraph a) (VizGraph a, (Node, Node))
- type VizGraph a = Gr (Maybe a, Maybe TGDocuInfo) ()
Documentation
mkVizGraph :: DirGraph a -> VizGraph a Source
The heart of this module: DirGraph to VizGraph.
Runs the state monad mkGraphBeginEnd
.
mkGraphBeginEnd :: DirGraph a -> State (VizGraph a) (VizGraph a, (Node, Node)) Source
the evaluate-function of the EDSL to generate a
VizGraph. Normally the function mkVizGraph
should be sufficent for the end-user.
The state is a VizGraph
, that is used to apply the function
newNodes
to it, that gives one or more new nodes.
In this VizGraph the Nodes are simply added, edges are senseless and
not added.
The output is the resulting VizGraph and a tuple of the first Node
and the last Node (remember: a DirGraph has exactly one begin and one end).