*****  To join INSNA, visit http://www.insna.org  *****

Hi,

What exactly do you mean by "length of the edges"? Is this the same
with the level of nodes in a rooted tree, the maximum of which being
what is called the height of the tree?

If yes, then in the case of a binary tree T with n nodes, you may want
to consider that the height of a tree ht(T) is bounded by

ceiling(lg(n + 1) - 1) \leq ht(T) \leq (n - 1)/2,

where lg is the logarithm with base 2.

Furthermore, among all regular binary trees with n nodes, the minimum
average level for the leaves is attained by the complete regular
binary trees.

Now, a good source of algorithms  on search trees is Robert Tarjan's
Data Structures and Network Algorithms (chapter 4 etc.).

I understand that these hints might not be what you're looking for (in
case you may wish to remain on visualization techniques). Perhaps
others in the list might be able to help you more on this.

Best,

--Moses

> ***** To join INSNA, visit http://www.insna.org ***** Hello everyone
>
> Does anyone know of an algorithm (any language) for drawing a tree graph
> with the constraint that the length of the edges is pre-specified? If the
> algorithm is in Java and specifies vertex coordinates - even better.
>
> Most algorithms I see adjust the length of the edges for visual purposes.
>
> Thanks a lot!
>
> Kimmo
>
> -------------------------------
> Kimmo Soramaki
> Founder, www.fna.fi
> Blog, www.fna.fi/blog