I'm a complete newbie to Tikz and I want to create a decision tree similar to the image below (which I did in Paint). Does anybody know how I can do this in Latex?
My attempt still is far away from what I want:
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[grow=right]
\node(A){A}
child[sibling distance=25mm]{node{1}
child{node{} edge from parent[] node[right,xshift=10]{}
child[sibling distance=10mm]{node{5}
child{node{} edge from parent[] node[right,xshift=10]{}}
}
child[sibling distance=10mm]{node{6}
child{node{} edge from parent[] node[right,xshift=10]{}}
}
}
}
child[sibling distance=25mm]{node{2}
child{node{} edge from parent[] node[right,xshift=10]{}
child[sibling distance=10mm]{node{3}
child{node{} edge from parent[] node[right,xshift=10]{}}
}
child[sibling distance=10mm]{node{4}
child{node{} edge from parent[] node[right,xshift=10]{}}
}
}
};
\node[left=of A](B){B};
\draw[](B)--(A);
\end{tikzpicture}
\end{document}


split option={content}{;}{content,decision}from here without acknowledging the source. :-( – May 20 '19 at 16:28forestdocumentation, page 83-84 (5.1 Decision tree). I also see, that this solution uses others too, for example cfr . So, to whom I (we) should gives acknowledgements? To DEK, Laslie Lamport, David Carlisle, Till Tauntau ... ? So far, I have been of the opinion that this site is intended to help people (with care about duplicate questions) and not to publish original scientific works, where citing sources is of key importance. – Zarko May 20 '19 at 17:47