bintreeviz v0.1.1 Bintreeviz View Source

Bintreeviz is a binary tree visualizer for Elixir. Its main purpose is to convert a given tree structure into a string representation.

Positioning

It supports pluggable algorithms for positioning of the individual nodes. Out-of-the-box it comeswith the Wetherell and Shannon (WS) algorithm for drawing tidy trees as described in IEEE.

Rendering

It supports pluggable renderers for outputting the positioned tree to a string format. out-of-the-box it comes with an ASCII renderer which will use a configurable charset to draw the tree.

Configuration options

The renderer takes a keyword list with configuration options:

Link to this section Summary

Functions

render/1 takes the root node, positions it and then renders it into a string

Link to this section Types

Link to this type

render_options()

View Source
render_options() :: [
  renderer: Bintreeviz.Renderer.t(),
  positioner: Bintreeviz.Positioner.t()
]

Link to this section Functions

render/1 takes the root node, positions it and then renders it into a string