static void union ( int x , int y ) {
  int rx = find ( x ) , ry = find ( y ) ;
  if ( rx == ry ) return ;
  p [ rx ] = ry ;
}

static void union ( int x , int y ) { int rx = find ( x ) , ry = find ( y ) ; if ( rx == ry ) return ; p [ rx ] = ry ; }
(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 (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier)))) declarator: (variable_declarator name: (identifier) value: (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)))))