Bizarre results with TreePlot
- To: mathgroup at smc.vnet.net
- Subject: [mg64913] Bizarre results with TreePlot
- From: Renan <renan.birck at gmail.com>
- Date: Tue, 7 Mar 2006 06:12:15 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
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