我尝试设置edge from parent/.style={draw, bend left=60}
,但线条仍然是直的。我做错了什么?
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
every node/.style={
draw,
circle,
},
edge from parent/.style={
draw,
bend left=25,
},
]
\node {}
child {node {}}
child {node {}};
\end{tikzpicture}
\end{document}
答案1
找到了解决方案。而不是
edge from parent/.style={
draw,
bend left=25,
},
我放
edge from parent path={
(\tikzparentnode\tikzparentanchor) edge [bend left=25] (\tikzchildnode\tikzchildanchor)
},
并且成功了!