geni-gui-0.25.1: GenI graphical user interface

Safe HaskellNone
LanguageHaskell2010

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.

You can download this (open source) tool at http://www.research.att.com/sw/tools/graphviz

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

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 #

toGraphviz 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

gvShowTree Source #

Arguments

:: GraphvizShowNode n 
=> Text

node prefix

-> Tree n

the tree

-> DotSubGraph Text 

Displays a tree in graphviz format.