From: Ramiro on
Hi,

I am trying to draw a tree with TreePlot. I would like the branches
to have equal lengths but don't see how to do it in a simple way. Any
suggestions?

Sample Code:

TreePlot[{i1 -> 1, i1 -> 2, i1 -> i2, i2 -> 3, i2 -> 4}, Center,
VertexLabeling -> True]

The tree comes out with unequal lengths. And sometimes if I draw more
than one tree some the edges shrink for some reason.

Thanks in advance,
Ramiro

From: magma on
On May 28, 1:22pm, Ramiro <ramiro.barran...(a)gmail.com> wrote:
> Hi,
>
> I am trying to draw a tree with TreePlot. I would like the branches
> to have equal lengths but don't see how to do it in a simple way. Any
> suggestions?
>
> Sample Code:
>
> TreePlot[{i1 -> 1, i1 -> 2, i1 -> i2, i2 -> 3, i2 -> 4}, Center,
> VertexLabeling -> True]
>
> The tree comes out with unequal lengths. And sometimes if I draw more
> than one tree some the edges shrink for some reason.
>
> Thanks in advance,
> Ramiro

Perhaps I do not understand exactly what you want to achieve.
I tried this:

TreePlot[{i1 -> 1, i1 -> 2, i1 -> i2, i2 -> 3, i2 -> 4},
VertexLabeling -> True]

without the "Center" option and it does not look too bad to me.
The branches have equal length as far as I can see.


From: Ramiro on
Yes, I would still like to keep the center orientation.

On May 30, 6:47 am, magma <mader...(a)gmail.com> wrote:
> On May 28, 1:22pm,Ramiro<ramiro.barran...(a)gmail.com> wrote:
>
>
>
> > Hi,
>
> > I am trying to draw a tree with TreePlot. I would like the branches
> > to have equal lengths but don't see how to do it in a simple way. Any
> > suggestions?
>
> > Sample Code:
>
> > TreePlot[{i1 -> 1, i1 -> 2, i1 -> i2, i2 -> 3, i2 -> 4}, Center,
> > VertexLabeling -> True]
>
> > The tree comes out with unequal lengths. And sometimes if I draw more
> > than one tree some the edges shrink for some reason.
>
> > Thanks in advance,
> >Ramiro
>
> Perhaps I do not understand exactly what you want to achieve.
> I tried this:
>
> TreePlot[{i1 -> 1, i1 -> 2, i1 -> i2, i2 -> 3, i2 -> 4},
> VertexLabeling -> True]
>
> without the "Center" option and it does not look too bad to me.
> The branches have equal length as far as I can see.


From: stejaes on
On May 28, 1:22 pm, Ramiro <ramiro.barran...(a)gmail.com> wrote:
> Hi,
>
> I am trying to draw a tree with TreePlot. I would like the branches
> to have equal lengths but don't see how to do it in a simple way. Any
> suggestions?
>
> Sample Code:
>
> TreePlot[{i1 -> 1, i1 -> 2, i1 -> i2, i2 -> 3, i2 -> 4}, Center,
> VertexLabeling -> True]
>
> The tree comes out with unequal lengths. And sometimes if I draw more
> than one tree some the edges shrink for some reason.
>
> Thanks in advance,
> Ramiro

Try

TreePlot[{i1 -> 1, i1 -> 2, i1 -> i2, i2 -> 3, i2 -> 4}, RootPosition -
> Center];

to view the symmetrical form. Without the RootPosition->Center option
i2 is equal
in depth with 1 and 2, so that 3 and 4 are one depth step deeper. The
graph depth is
than 2.

In the center form i1 and i2 are equal both having two deeper leaves.