combinat-0.2.5.0: Generation of various combinatorial objects.

Safe HaskellNone

Math.Combinat.Graphviz

Description

Creates graphviz .dot files from various structures, for example trees.

Synopsis

Documentation

binTree'Dot :: (Show a, Show b) => String -> BinTree' a b -> DotSource

treeDotSource

Arguments

:: Show a 
=> Bool

reverse the direction of the arrow

-> String

name of the graph

-> Tree a 
-> Dot 

Generates graphviz .dot file from a tree. The first argument is the name of the graph.

forestDotSource

Arguments

:: Show a 
=> Bool

make the individual trees clustered subgraphs

-> Bool

reverse the direction of the arrows

-> String

name of the graph

-> Forest a 
-> Dot 

Generates graphviz .dot file from a forest. The first argument tells whether to make the individual trees clustered subgraphs; the second is the name of the graph.