public static void dfs ( HashMap [ ] adj , int u , long curcost ) {
  if ( set . contains ( u ) || curcost > tmin ) {
    if ( curcost < tmin ) {
      tmin = curcost ;
    }
    return ;
  }
  visited [ u ] = true ;
  ;
}

public static void dfs ( HashMap [ ] adj , int u , long curcost ) { if ( set . contains ( u ) || curcost > tmin ) { if ( curcost < tmin ) { tmin = curcost ; } return ; } visited [ u ] = true ; ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (return_statement))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (true)))))