combinat-0.2.3: Generation of various combinatorial objects.
Math.Combinat.Graphviz
Description
Creates graphviz .dot files from various structures, for example trees.
.dot
Synopsis
type Dot = StringSource
binTreeDot :: Show a => String -> BinTree a -> DotSource
binTree'Dot :: (Show a, Show b) => String -> BinTree' a b -> DotSource
treeDot :: Show a => String -> Tree a -> DotSource
Generates graphviz .dot file from a tree. The first argument is the name of the graph.
forestDot :: Show a => Bool -> String -> Forest a -> DotSource
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.