Safe Haskell | None |
---|---|
Language | Haskell2010 |
Graphviz is an open source tool which converts an abstract representation of a graph (node foo is connected to node bar, etc.) into a nicely laid out graphic. This module contains methods to invoke graphviz and to convert graphs and trees to its input format.
You can download this (open source) tool at http://www.research.att.com/sw/tools/graphviz
- class GraphvizShow b where
- class GraphvizShowNode b where
- class GraphvizShowString b where
- toGraphviz :: GraphvizShow a => a -> String -> String -> IO FilePath
- gvUnlines :: [Text] -> Text
- gvShowTree :: GraphvizShowNode n => Text -> Tree n -> DotSubGraph Text
Documentation
class GraphvizShow b where Source #
Data structures which can be visualised with GraphViz should implement this class. Note the first argument to graphvizShowGraph is so that you can parameterise your show function (i.e. pass in flags to change the way you show particular object). Note that by default, all graphs are treated as directed graphs. You can hide this by turning off edge arrows.
graphvizShowGraph :: b -> DotGraph Text Source #
graphvizShowAsSubgraph :: Text -> b -> [DotSubGraph Text] Source #
graphvizLabel :: b -> Text Source #
graphvizParams :: b -> [GlobalAttributes] Source #
GraphvizShow b => GraphvizShow (Maybe b) Source # | |
GraphvizShow (GvItem Bool TagElem) Source # | |
GraphvizShow a => GraphvizShow (GvItem () a) Source # | |
TagItem t => GraphvizShow (GvItem GNodeHighlights t) Source # | |
class GraphvizShowNode b where Source #
class GraphvizShowString b where Source #
Things which are meant to be displayed within some other graph as (part) of a node label
graphvizShow :: b -> Text Source #
:: GraphvizShow a | |
=> a | |
-> String | the |
-> String | |
-> IO FilePath |
Note: the dotFile
argument allows you to save the intermediary
dot output to a file. You can pass in the empty string if you don't
:: GraphvizShowNode n | |
=> Text | node prefix |
-> Tree n | the tree |
-> DotSubGraph Text |
Displays a tree in graphviz format.