| Maintainer | Ivan.Miljenovic@gmail.com |
|---|
Data.GraphViz.Types.Generalised
Contents
Description
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.
Constructors
| GDotGraph | |
Fields
| |
Sub-components of a GDotGraph.
type GDotStatements a = Seq (GDotStatement a)Source
data GDotStatement a Source
Constructors
| GA GlobalAttributes | |
| SG (GDotSubGraph a) | |
| DN (DotNode a) | |
| DE (DotEdge a) |
Instances
| 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
Constructors
| GDotSG | |
Fields
| |
Instances
| 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 Attributes for the
entire graph/sub-graph. Note that GraphAttrs also applies to
DotSubGraphs.
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.
Constructors
| GraphAttrs | |
Fields
| |
| NodeAttrs | |
Fields
| |
| EdgeAttrs | |
Fields
| |
A node in DotGraph.
Constructors
| DotNode | |
Fields
| |
An edge in DotGraph.
Constructors
| DotEdge | |
Fields
| |