• Create a tree diagram from a tree node

    Parameters

    • node: TreeNode

      root node of the tree

    • vertical_dist: number

      vertical distance between nodes

    • horizontal_gap: number

      horizontal gap between nodes

    Returns Diagram

    tree diagram