答案1
这可以通过 tikz 来完成,只需手动定义一些兄弟距离并使用 for 循环即可。
代码
\documentclass[margin=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{trees}
\begin{document}
\begin{tikzpicture}[
level 1/.style={sibling distance=30mm},
level 2/.style={sibling distance=10mm},
level 3/.style={sibling distance=5mm},
shape=circle,
every node/.style={draw, fill, inner sep=0pt},
level distance=10mm,
]
\node {} child foreach \i in {1,...,4}
{ node {} child foreach \i in {1,...,3}
{ node {} child foreach \i in {1,...,2}
{ node {} child
{ node {} }
}
}
};
\end{tikzpicture}
\end{document}