Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- type DotGen = StateT State (WriterT Dot Identity)
- type State = Int
- graph :: GraphType -> GraphName -> DotGen a -> DotGraph
- graph_ :: GraphType -> DotGen a -> DotGraph
- genDot :: DotGen a -> Dot
- genSubDot :: Int -> DotGen a -> Dot
- directed :: GraphType
- undirected :: GraphType
- genNode :: NodeId -> [Attribute] -> DotGen ()
- namedNode :: Text -> [Attribute] -> DotGen NodeId
- namelessNode :: [Attribute] -> DotGen NodeId
- node :: Text -> DotGen NodeId
- node_ :: NodeId -> Text -> DotGen ()
- newNode :: DotGen NodeId
- genEdge :: NodeId -> NodeId -> [Attribute] -> DotGen ()
- (-->) :: NodeId -> NodeId -> DotGen ()
- (=:) :: AttributeName -> AttributeValue -> Attribute
- label :: AttributeName
- compound :: AttributeName
- shape :: AttributeName
- color :: AttributeName
- dir :: AttributeName
- width :: AttributeName
- height :: AttributeName
- true :: AttributeValue
- false :: AttributeValue
- none :: AttributeValue
- genDec :: DecType -> [Attribute] -> DotGen ()
- graphDec :: [Attribute] -> DotGen ()
- nodeDec :: [Attribute] -> DotGen ()
- edgeDec :: [Attribute] -> DotGen ()
- subgraph :: Text -> DotGen () -> DotGen GraphName
- cluster :: Text -> DotGen () -> DotGen GraphName
- cluster_ :: Text -> DotGen () -> DotGen ()
- rankdir :: RankdirType -> DotGen ()
- leftRight :: RankdirType
- topBottom :: RankdirType
- labelDec :: Text -> DotGen ()
- (.:) :: NodeId -> Text -> NodeId
- data Dot
- data DotGraph
- data NodeId
- type Attribute = (Text, Text)
- data DecType
- data RankdirType
- renderGraph :: DotGraph -> Text
- renderToFile :: FilePath -> DotGraph -> IO ()
- renderToStdOut :: DotGraph -> IO ()
Documentation
Graph types
undirected :: GraphType Source
Directed graph
Nodes
namelessNode :: [Attribute] -> DotGen NodeId Source
Nameless node with attributes
Edges
Attributes
Attribute Names
Attribute values
Declarations
graphDec :: [Attribute] -> DotGen () Source
Graph declaration
>>>
graphDec [compound =: true]
> graph [compound=true];
nodeDec :: [Attribute] -> DotGen () Source
Node declaration
>>>
nodeDec [shape =: none]
> node [shape=none];
edgeDec :: [Attribute] -> DotGen () Source
Edge declaration
>>>
edgeDec [color =: "red:blue"]
> edge [color="red:blue"];
Subgraphs
Miscelaneous
Rankdir
rankdir :: RankdirType -> DotGen () Source
Labels
Ports
Graph Types
Graph rendering
renderGraph :: DotGraph -> Text Source
renderToFile :: FilePath -> DotGraph -> IO () Source
renderToStdOut :: DotGraph -> IO () Source