Re: Bizarre results with TreePlot
- To: mathgroup at smc.vnet.net
- Subject: [mg64933] Re: Bizarre results with TreePlot
- From: dh <dh at metrohm.ch>
- Date: Wed, 8 Mar 2006 00:59:47 -0500 (EST)
- References: <dujs54$940$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi Renan,
I think you forgot to read in the package:
<<DiscreteMath`Tree`
Daniel
Renan wrote:
> Hello MathGroup,
>
> From DiscreteMath`GraphPlot` help:
>
> (Apologies if there are any typos: I was unable to get it to
> copy/paste without the formatting tags)
>
> "This plots a binary tree:
>
> g = Flatten[Table[{i -> 2*i, i -> 2*i + 1}, {i, 2^4 - 1}]];
> TreePlot[g];"
>
> Graphics::gprim: DiscreteMath`Tree`Private`TreePlot0[1->3,-1,1] was
> encountered where a Graphics primitive or directive was expected.
> [More...]
>
> Graphics::gprim: DiscreteMath`Tree`Private`TreePlot0[2->4,-0.928571,1]
> was encountered where a Graphics primitive or directive was expected.
> [More...]
>
> Graphics::gprim: DiscreteMath`Tree`Private`TreePlot0[2->5,-0.928571,1]
> was encountered where a Graphics primitive or directive was expected.
> [More...]
>
> Now, I don't understand why this gives wrong result, if it was copied
> straight from the help file .
>
> Any clues? This is Mathematica 5.2 on Windows.
>
> Thanks,
> Renan
>