static void dfs ( int x , int col ) {
  colour [ x ] = col ;
  for ( Integer i : gr [ x ] ) {
    if ( colour [ i ] == - 1 ) dfs ( i , col ^ 1 ) ;
    else if ( colour [ i ] == col ) bip = false ;
  }
}

static void dfs ( int x , int col ) { colour [ x ] = col ; for ( Integer i : gr [ x ] ) { if ( colour [ i ] == - 1 ) dfs ( i , col ^ 1 ) ; else if ( colour [ i ] == col ) bip = false ; } }
(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 (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: (array_access array: (identifier) index: (identifier)) right: (unary_expression operand: (decimal_integer_literal)))) consequence: (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (decimal_integer_literal))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))) consequence: (expression_statement (assignment_expression left: (identifier) right: (false)))))))))