This is a tree that I made by following code:
\begin{tikzpicture}[sibling distance=7em,
every node/.style = {shape=rectangle, rounded corners,
draw,
top color=white, bottom color=blue!20}]]
\node {$ C_{i} $}
child { node {$ q_{1}k_{1} $}
child{node{$q_{2}k_{2} $}}
child{node{$\cdots$}}
child{node{$q_{2}k_{2}+(k_{2}-1) $}}}
child { node {$ \cdots$} }
child { node {$ q_{1}k_{1} +(k_{1}-1)$}
child{node{$q_{2}k_{2} $}}
child{node{$\cdots$}}
child{node{$q_{2}k_{2}+(k_{2}-1) $}}}
;
\end{tikzpicture}
As you can see two branch collapse and I wanna make the tree wider to make it nicer.


forestwhich pack nodes automatically for you. The base TikZ tree methods are quite weak in this respect in addition to having a very clumsy syntax. Plenty of examples on the site, and this question is certainly a duplicate of various questions. Here's one, with some goodforestexamples: Large Nodes in Tikz Tree Leads to Overlap – Alan Munn Dec 23 '19 at 16:42