Tree Structure - Grasshopper?

Hello,

I am trying to apply this method to curves that I draw myself, but it seems like the branches don’t connect properly (image). what do i miss?

In your example the braches of your
tree connect smoothly, how do I get this result?

Thank you in advance,
Ana