geni-gui-0.25.1: GenI graphical user interface

NLP.GenI.Graphviz

Description

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.

Synopsis

# 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.

Minimal complete definition

graphvizShowAsSubgraph

Instances

 Source # Methods Source # Methods GraphvizShow a => GraphvizShow (GvItem () a) Source # MethodsgraphvizShowAsSubgraph :: Text -> GvItem () a -> [DotSubGraph Text] Source #graphvizLabel :: GvItem () a -> Text Source #graphvizParams :: GvItem () a -> [GlobalAttributes] Source # Source # Methods

class GraphvizShowNode b where Source #

Minimal complete definition

graphvizShowNode

Methods

Instances

 Source # Methods

class GraphvizShowString b where Source #

Things which are meant to be displayed within some other graph as (part) of a node label

Minimal complete definition

graphvizShow

Methods

graphvizShow :: b -> Text Source #

Arguments

 :: GraphvizShow a => a -> String the dotFile -> 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

Arguments

 :: GraphvizShowNode n => Text node prefix -> Tree n the tree -> DotSubGraph Text

Displays a tree in graphviz format.