vp-tree-0.1.0.1: Vantage Point Trees
Safe HaskellNone
LanguageHaskell2010

Data.VPTree.Draw

Contents

Synopsis

Documentation

draw :: (Show a, PrintfArg d) => VPTree d a -> IO () Source #

Render a tree to stdout

Useful for debugging

This should be called only for small trees, otherwise the printed result quickly overflows the screen and becomes hard to read.

NB : prints distance information rounded to two decimal digits

drawVT :: (Show a, PrintfArg d) => VT d a -> IO () Source #

helpers

toStringVT :: (Show a, PrintfArg d) => VT d a -> String Source #