Stability | experimental |
---|---|
Maintainer | developer@flocc.net |
Safe Haskell | None |
For more information please see http://www.flocc.net/
- type ShowNodeFunc n m = n -> m String
- showNodeFromMap :: Monad m => ShowNodeFunc Node (StateT (NodeEnv String) m)
- showNodeNothing :: Monad m => ShowNodeFunc Node m
- nodeName :: Idx -> String
- dotDrawSubgraph :: Monad m => ShowNodeFunc Node m -> Graph -> StateT IdxSet m String
- dotDrawSubgraphs :: Monad m => ShowNodeFunc Node m -> Node -> StateT IdxSet m String
- dotDrawEdges :: Node -> String
- dotDrawGraph :: Monad m => ShowNodeFunc Node m -> Graph -> StateT IdxSet m String
- class DotDrawable a where
- dotDrawLabel :: Node -> String -> String
- dotDrawWithMap :: Graph -> NodeEnv String -> String
- showDFNodeFromMap :: Monad m => ShowNodeFunc Node (StateT (NodeEnv String) m)
- dotDrawDFGWithMap :: Graph -> NodeEnv String -> String
Documentation
type ShowNodeFunc n m = n -> m String
showNodeFromMap :: Monad m => ShowNodeFunc Node (StateT (NodeEnv String) m)
showNodeFrom map is a ShowNodeFunc that takes a map of idx's to strings |and returns that string for every node in the map.
showNodeNothing :: Monad m => ShowNodeFunc Node m
showNodeNothing is the default ShowNodeFunc that just calles the dotDraw function for |the node it is passed.
dotDrawSubgraph :: Monad m => ShowNodeFunc Node m -> Graph -> StateT IdxSet m String
dotDrawSubgraph takes a display function and a digraph and renders it |in an xdot cluster subgraph.
dotDrawSubgraphs :: Monad m => ShowNodeFunc Node m -> Node -> StateT IdxSet m String
dotDrawSubgraphs takes a graph node and outputs all of |it's subgraphs.
dotDrawEdges :: Node -> String
dotDrawEdges takes a graph node and returns a ; delimited list of |edges in dot format.
dotDrawGraph :: Monad m => ShowNodeFunc Node m -> Graph -> StateT IdxSet m String
dotDrawGraph takes a graph and draws it the internals |of a graphviz dot file.
class DotDrawable a where
DotDrawable exports the dotDraw function.
DotDrawable Graph | Instance of DotDrawable for Digraphs. |
DotDrawable Node | Instance of DotDrawable for graph nodes. |
DotDrawable NodeTy | Instance of DotDrawable for graph node attributes. |
dotDrawLabel :: Node -> String -> String
dotDrawWithMap :: Graph -> NodeEnv String -> String
showDFNodeFromMap :: Monad m => ShowNodeFunc Node (StateT (NodeEnv String) m)
showNodeFrom map is a ShowNodeFunc that takes a map of idx's to strings |and returns that string for every node in the map.
dotDrawDFGWithMap :: Graph -> NodeEnv String -> String