lambda-ml.data.binary-tree

adjacency-matrix

(adjacency-matrix tree)(adjacency-matrix tree matrix)

Returns an adjacency matrix representation of a binary tree.

get-left

(get-left tree)

get-path

(get-path tree paths)

get-right

(get-right tree)

get-value

(get-value tree)

leaf?

(leaf? tree)

make-tree

(make-tree val)(make-tree val left right)

print-tree

(print-tree tree)(print-tree tree level)