the connect of the tree link node
flatten for tree