static void unite ( int x , int y ) {
  x = root ( x ) ;
  y = root ( y ) ;
  if ( x == y ) return ;
  par [ x ] = y ;
}

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