Functions for transforming a tree or a forest to a string.
toString : Basics.Int -> (a -> String) -> Tree a -> String
The first argument is the quantum of indentation. The second is a function for transforming a node of a tree to a string.
forestToString : Basics.Int -> (a -> String) -> List (Tree a) -> String
The first argument is the quantum of indentation. The second is a function for transforming a node of a forest to a string.
{ halfAngle : Basics.Float
, initialEdgeLength : Basics.Float
, scaleFactor : Basics.Float
, ballRadius : Basics.Float
, ballColor : String
}
Preferences for function toGraph.
defaults : Preferences
Default Preferences
toGraph : Preferences -> (a -> String) -> Tree a -> Tree.Graph.Graph
Transform a Tree to a Graph: a data structure that can be rendered to SVG.