我希望我的树向右生长。然后只有这个节点的子节点才会向下生长。不幸的是,它们向下生长,但层次却向左生长。为什么树会这样向下生长?
\documentclass[conference]{IEEEtran}
\usepackage{tikz}
\usetikzlibrary{trees}
\begin{document}
\begin{figure}[H]
\begin{tikzpicture}
[edge from parent/.style= {thick, draw= cyan, edge from parent fork right},
gg/.style={grow=down},
%color and box
1/.style={rectangle,draw,fill=cyan!95, rounded corners=.8ex},
2/.style={rectangle,draw,fill=cyan!40, rounded corners=.8ex},
3/.style={rectangle,draw,fill=cyan!20, rounded corners=.8ex},
%distance
first/.style={level distance=4.5cm, align=center},
second/.style={sibling distance=8cm,align=center},
third/.style={sibling distance=2cm,align=center},
fourth/.style={sibling distance=2cm,align=center},
fifth/.style={level distance=4cm, align=center},
sixth/.style={level distance=7ex, align=center},]
\node [1] {gg} [grow=right]
child [first,second] {node[2] {gg}
child [third]{node[3] {child}}
child [third]{node[3] {child}}
child [third]{node[3] {child}}
child [third]{node[3] {child}}
child [third]{node[3] {child}}}
child [first,second] {node[2] {gg}
child [third]{node[3] {child}}
child [third]{node[3] {child}}
child [third]{node[3] {child}}
child [third]{node[3] {child}}}
child [first,second] {node[2] {gg}
child [third]{node[3] {gg}}
child [third]{node[3] {gg}}
child [third]{node[3] {gg}
child [gg]{node[3] {child}}
child [gg,sixth]{node[3] {child}}
}}
;
\end{tikzpicture}
\end{figure}
\end{document}