int root = - 1 ; for ( int i = 0 ; i < n; i++) { if (fathers[i] == - 1 ) { root = i; }
}
找到根结点