Trying to make a simple tree, but when I finished I realized I'd gone about it totally the wrong way... Would appreciate some help trying to make this the "correct" way. Oh, and also to circle the last 5/3


\matrix(m)[matrix of math nodes,column sep=0.5cm,row sep=0.3cm,]{
     & & & \dfrac{1}{1} & & & \\
     & \dfrac{1}{2} & & & & \dfrac{2}{1} & \\
     \dfrac{1}{3} & & \dfrac{3}{2} & & \dfrac{2}{3} & & \dfrac{3}{1} \\
     \vdots & & \vdots & & & \dfrac{5}{3} & \vdots \\

enter image description here

  • 1
    You could have a look at the "Making trees grow" section of the TikZ manual. There is a child path action which is better suited to construct trees than using \matrix + edges. – Bordaigorl May 19 '15 at 9:26
  • Is this helpful? tex.stackexchange.com/q/106895/4778 – Alenanno May 19 '15 at 9:51
  • For a second, I thought you were from West Virginia (this is an attempt at American regional humor). – Steven B. Segletes May 19 '15 at 10:20

With forest it's easy to change how the tree grows. It has a reversed option.


for tree={edge = ->, reversed}
        [$\dfrac{2}{3}$[,phantom][$\dfrac{5}{3}$, draw, circle]]

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.