![节点旁边的注释](https://linux22.com/image/469004/%E8%8A%82%E7%82%B9%E6%97%81%E8%BE%B9%E7%9A%84%E6%B3%A8%E9%87%8A.png)
我正尝试在每个节点旁边添加一些注释以进行森林管理LaTeX
,但我不知道该怎么做。
有人知道我们如何在森林节点旁边的矩形中添加这种颜色组合吗?
\documentclass[12pt,twoside]{article}
\usepackage{forest}
\begin{document}
\begin{figure}[t]
\centering
\footnotesize
\begin{forest}
for tree={
grow=south,
top color = white,
bottom color = white,
circle,
draw,
minimum size=12ex,
inner sep=7pt,
s sep=15mm,
}
[{\{a,b,c,d\}}
[{\{a,b,c,d\}}
[{\{a,d,c\}}
[{\{d,c\}}
[{\{c\}}
[{\{g,c\}}
[{\{g\}}]
]
]
]
]
]
[{\{a,b,c,d\}}
[{\{a,b,c,d\}}
[{\{b,d,c\}}
[{\{b,c\}}
[{\{b\}}
[{\{b,e\}}
[{\{e\}}]
]
]
]
]
]
]
[{\{a,b,c,d\}}
[{\{a,b,c\}}
[{\{ac\}}
[{\{a\}}
[{\{a,f\}}
[{\{f\}}]
]
]
]
]
]
]
\end{forest}
\end{figure}
\end{document}