combinat-0.2.4.1: Generation of various combinatorial objects.Source codeContentsIndex
Math.Combinat.Graphviz
Description
Creates graphviz .dot files from various structures, for example trees.
Synopsis
type Dot = String
binTreeDot :: Show a => String -> BinTree a -> Dot
binTree'Dot :: (Show a, Show b) => String -> BinTree' a b -> Dot
treeDot :: Show a => Bool -> String -> Tree a -> Dot
forestDot :: Show a => Bool -> Bool -> String -> Forest a -> Dot
Documentation
type Dot = StringSource
binTreeDot :: Show a => String -> BinTree a -> DotSource
binTree'Dot :: (Show a, Show b) => String -> BinTree' a b -> DotSource
treeDotSource
:: Show a
=> Boolreverse the direction of the arrow
-> Stringname of the graph
-> Tree a
-> Dot
Generates graphviz .dot file from a tree. The first argument is the name of the graph.
forestDotSource
:: Show a
=> Boolmake the individual trees clustered subgraphs
-> Boolreverse the direction of the arrows
-> Stringname 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.
Produced by Haddock version 2.6.1