Graphics, Figures & Tablescreate a convergent hierarchy

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
waterinus
Posts: 8
Joined: Thu Mar 05, 2015 12:33 am

create a convergent hierarchy

Post by waterinus »

Dear fellows,
I'm trying to use this code to create a convergent hierarchy, but I'm not sure how to "converge" A6. I want both A4 and A5 point to A6.
Thank you so much, and please let me know if you need additional information
Walter

Code: Select all

\begin{center}
\begin{tikzpicture}[every tree node/.style={draw,circle},
   level distance=2cm,sibling distance=1cm, 
   edge from parent/.style={thick,draw=black!70,-latex},
   edge from parent path={(\tikzparentnode) -- (\tikzchildnode)}]
\Tree [.\node {A1}; 
    [.A2   [.A3 
    [.A4  [.A6 ]] 
    [.A5  [.A6 ] ]]]]
     
    
  ]
\end{tikzpicture}
\end{center}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

waterinus
Posts: 8
Joined: Thu Mar 05, 2015 12:33 am

create a convergent hierarchy

Post by waterinus »

Code: Select all

\documentclass[12pt]{article} 
\usepackage{tikz-qtree}
\begin{document}
\begin{center}
\begin{tikzpicture}[every tree node/.style={draw,circle},
   level distance=2cm,sibling distance=1cm, 
   edge from parent/.style={thick,draw=black!70,-latex},
   edge from parent path={(\tikzparentnode) -- (\tikzchildnode)}]
\Tree [.\node {A1}; 
    [.A2   [.A3 
    [.A4  [.A6 ]] 
    [.A5  [.A6 ] ]]]]
     
    
  ]
\end{tikzpicture}
\end{center}
\end{document}
Attachments
Screen Shot 2015-03-05 at 1.36.00 AM.png
Screen Shot 2015-03-05 at 1.36.00 AM.png (39.19 KiB) Viewed 3518 times
waterinus
Posts: 8
Joined: Thu Mar 05, 2015 12:33 am

Re: create a convergent hierarchy

Post by waterinus »

please help!
Post Reply