# [pstricks] trees: putting objects on tree branches

MA V ma_v at hotmail.com
Mon Sep 15 18:21:14 CEST 2008

Thanks Herbert. I think I've very close now to achieving what I am looking for. I just have a couple of additional questions...
Suppose now I have the following tree:

\documentclass[a4paper]{article}
\usepackage{pst-tree}

\newcommand{\MyNode}[2][]{\Tcircle[#1]{\makebox[1em]{#2}}}
\pagestyle{empty}

\begin{document}

\pstree[treemode=R]{\MyNode[name=0]{0}}
{\pstree{\MyNode[name=1]{1}}
{\MyNode{2}
\MyNode{3}}
\MyNode[name=4]{4}}
\ncline[linestyle=none]{0}{1}\naput*{\pspolygon(-0.2,-0.4)(0.1,0.1)(0.4,-0.4)}
\ncline[linestyle=none]{0}{4}\ncput{$\times$}

\end{document}

How can I:
1) draw the triangle in such a way that it's orientation is consistent (i.e. the basis of the triangle is parallel) to the line connecting nodes 0 and 1
2) write something right below the triangle