答案1
由于我碰巧有一些空闲时间,而且使用forest
包的解决方案非常简单......但在功能上请向我们展示您迄今为止尝试过的内容以及您在努力中遇到的问题!
\documentclass[border=3.131592]{standalone}
\usepackage{forest}
\newcommand\A{\textcolor{purple}{A}}
\newcommand\B{\textcolor{red}{B}}
\newcommand\C{\textcolor{teal}{C}}
\newcommand\D{\textcolor{olive}{D}}
\newcommand\E{\textcolor{cyan}{E}}
\newcommand\F{\textcolor{purple}{F}}
\newcommand\G{\textcolor{purple}{G}}
\renewcommand\H{\textcolor{orange}{H}}
\begin{document}
\begin{forest}
for tree = {
% nodes
circle, minimum size=2.8em, inner sep=0pt, draw,
% tree
edge = {thick, double},
s sep=5mm,
l sep=5mm
},
% tree body
[\B\C\E
[\B\C\E
[\B\C\E
[\B\E\G
[\B\F\G]
[\E\G\H]
]
]
[\B\C\E
[\C\D\E]
]
]
[~,phantom,fit=band]
[\B\C
[\A\B\C]
]
]
\end{forest}
\end{document}