static void addEdges ( int i , int x ) {
  list [ i ] . add ( x ) ;
  list [ x ] . add ( i ) ;
}

static void addEdges ( int i , int x ) { list [ i ] . add ( x ) ; list [ x ] . add ( i ) ; }
(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 (method_invocation object: (array_access array: (identifier) index: (identifier)) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (method_invocation object: (array_access array: (identifier) index: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))