Maintainer | Ivan.Miljenovic@gmail.com |
---|
This module provides an alternate definition of the types found in
Data.GraphViz.Types, in that the ordering constraint found in
DotStatements
is no longer present. All other
limitations/constraints are still present however.
The types here have the same names as those in
Data.GraphViz.Types but with a prefix of "G"
.
This module is partially experimental, and may change in the future.
- data GDotGraph a = GDotGraph {}
- type GDotStatements a = Seq (GDotStatement a)
- data GDotStatement a
- = GA GlobalAttributes
- | SG (GDotSubGraph a)
- | DN (DotNode a)
- | DE (DotEdge a)
- data GDotSubGraph a = GDotSG {}
- data GraphID
- data GlobalAttributes
- = GraphAttrs {
- attrs :: Attributes
- | NodeAttrs {
- attrs :: Attributes
- | EdgeAttrs {
- attrs :: Attributes
- = GraphAttrs {
- data DotNode a = DotNode {
- nodeID :: a
- nodeAttributes :: Attributes
- data DotEdge a = DotEdge {
- edgeFromNodeID :: a
- edgeToNodeID :: a
- directedEdge :: Bool
- edgeAttributes :: Attributes
- generaliseDotGraph :: DotGraph a -> GDotGraph a
The overall representation of a graph in generalised Dot format.
The internal representation of a generalised graph in Dot form.
GDotGraph | |
|
Sub-components of a GDotGraph
.
type GDotStatements a = Seq (GDotStatement a)Source
data GDotStatement a Source
GA GlobalAttributes | |
SG (GDotSubGraph a) | |
DN (DotNode a) | |
DE (DotEdge a) |
Functor GDotStatement | |
Eq a => Eq (GDotStatement a) | |
Ord a => Ord (GDotStatement a) | |
Read a => Read (GDotStatement a) | |
Show a => Show (GDotStatement a) | |
ParseDot a => ParseDot (GDotStatement a) | |
PrintDot a => PrintDot (GDotStatement a) |
data GDotSubGraph a Source
GDotSG | |
|
Functor GDotSubGraph | |
Eq a => Eq (GDotSubGraph a) | |
Ord a => Ord (GDotSubGraph a) | |
Read a => Read (GDotSubGraph a) | |
Show a => Show (GDotSubGraph a) | |
ParseDot a => ParseDot (GDotSubGraph a) | |
PrintDot a => PrintDot (GDotSubGraph a) |
Re-exported from Data.GraphViz.Types
.
data GlobalAttributes Source
Represents a list of top-level list of Attribute
s for the
entire graph/sub-graph. Note that GraphAttrs
also applies to
DotSubGraph
s.
Note that Dot allows a single Attribute
to be listen on a line;
if this is the case then when parsing, the type of Attribute
it
is determined and that type of GlobalAttribute
is created.
A node in DotGraph
.
DotNode | |
|
An edge in DotGraph
.
DotEdge | |
|