public void connect(TreeLinkNode root) {

        if (root == null)
            return;

        root.next = null;

        TreeLinkNode next = connectNextLine(root);
        while (next != null) {
            next = connectNextLine(next);
        }

    }