static void dfs ( int place , int front , long cost ) {
  dist [ place ] = cost ;
  for ( Edge e : list [ place ] ) {
    if ( e . to != front ) {
      dfs ( e . to , place , cost + e . cost ) ;
    }
  }
}

static void dfs ( int place , int front , long cost ) { dist [ place ] = cost ; for ( Edge e : list [ place ] ) { if ( e . to != front ) { dfs ( e . to , place , cost + e . cost ) ; } } }
(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)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))) (enhanced_for_statement type: (type_identifier) name: (identifier) value: (array_access array: (identifier) index: (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (identifier))) consequence: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)) (identifier) (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier))))))))))))