static void addpair ( int a , int b ) {
  if ( a > b ) {
    int temp = a ;
    a = b ;
    b = temp ;
  }
  if ( ! map . containsKey ( a ) ) {
    map . put ( a , new HashSet < Integer > ( ) ) ;
    maptoobj . put ( a , new HashMap < > ( ) ) ;
  }
  map . get ( a ) . add ( b ) ;
  Pair pair = new Pair ( a , b ) ;
  set . add ( pair ) ;
  maptoobj . get ( a ) . put ( b , pair ) ;
}

static void addpair ( int a , int b ) { if ( a > b ) { int temp = a ; a = b ; b = temp ; } if ( ! map . containsKey ( a ) ) { map . put ( a , new HashSet < Integer > ( ) ) ; maptoobj . put ( a , new HashMap < > ( ) ) ; } map . get ( a ) . add ( b ) ; Pair pair = new Pair ( a , b ) ; set . add ( pair ) ; maptoobj . get ( a ) . put ( b , pair ) ; }
(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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (unary_expression operand: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (object_creation_expression type: (generic_type (type_identifier) (type_arguments (type_identifier))) arguments: (argument_list))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (object_creation_expression type: (generic_type (type_identifier) (type_arguments)) arguments: (argument_list))))))) (expression_statement (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) name: (identifier) arguments: (argument_list (identifier)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) name: (identifier) arguments: (argument_list (identifier) (identifier))))))