static int root ( int x ) {
  if ( par [ x ] == x ) {
    return x ;
  }
  else {
    return par [ x ] = root ( par [ x ] ) ;
  }
}

static int root ( int x ) { if ( par [ x ] == x ) { return x ; } else { return par [ x ] = root ( par [ x ] ) ; } }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))) consequence: (block (return_statement (identifier))) alternative: (block (return_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))))))))