答案1
根据以下答案tikz 树:如何不绘制单个边缘:
\documentclass[border=3mm,tikz,preview]{standalone}
\usepackage[low-sup]{subdepth}
\begin{document}
\begin{tikzpicture}[
grow = right,
sibling distance = 7mm,
level distance = 21mm,
edge from parent path = {(\tikzparentnode) -- (\tikzchildnode.west)}
]
\node {$S_0$}
child {node {$S_0u_M$} }
child {node {$S_0u_{M-1}$} }
child {node[draw=none] {$\vdots$} edge from parent[draw=none]}
child { node {$S_0u_2$} }
child { node {$S_0u_1$} };
\end{tikzpicture}
\end{document}
得出:
在上面的例子中,包subdepth
不是必需的,它只是为了稍微好一点的索引位置服务。