public static void main ( String [ ] args ) {
  int maxn = 12 ;
  @ SuppressWarnings ( "unchecked" ) Vector < Integer > [ ] adj = new Vector [ maxn + 1 ] ;
  for ( int i = 0 ;
  i < maxn + 1 ;
  i ++ ) {
    adj [ i ] = new Vector < > ( ) ;
  }
  int k = 3 ;
  addEdge ( adj , 2 , 11 , k ) ;
  addEdge ( adj , 2 , 6 , k ) ;
  addEdge ( adj , 5 , 11 , k ) ;
  addEdge ( adj , 5 , 10 , k ) ;
  addEdge ( adj , 5 , 12 , k ) ;
  addEdge ( adj , 6 , 7 , k ) ;
  addEdge ( adj , 6 , 8 , k ) ;
  System . out . println ( countPaths ( adj , k , maxn ) ) ;
}

public static void main ( String [ ] args ) { int maxn = 12 ; @ SuppressWarnings ( " unchecked " ) Vector < Integer > [ ] adj = new Vector [ maxn + 1 ] ; for ( int i = 0 ; i < maxn + 1 ; i ++ ) { adj [ i ] = new Vector < > ( ) ; } int k = 3 ; addEdge ( adj , 2 , 11 , k ) ; addEdge ( adj , 2 , 6 , k ) ; addEdge ( adj , 5 , 11 , k ) ; addEdge ( adj , 5 , 10 , k ) ; addEdge ( adj , 5 , 12 , k ) ; addEdge ( adj , 6 , 7 , k ) ; addEdge ( adj , 6 , 8 , k ) ; System . out . println ( countPaths ( adj , k , maxn ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration (modifiers (annotation name: (identifier) arguments: (annotation_argument_list (string_literal)))) type: (array_type element: (generic_type (type_identifier) (type_arguments (type_identifier))) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (type_identifier) dimensions: (dimensions_expr (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (object_creation_expression type: (generic_type (type_identifier) (type_arguments)) arguments: (argument_list)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal) (decimal_integer_literal) (identifier)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal) (decimal_integer_literal) (identifier)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal) (decimal_integer_literal) (identifier)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal) (decimal_integer_literal) (identifier)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal) (decimal_integer_literal) (identifier)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal) (decimal_integer_literal) (identifier)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal) (decimal_integer_literal) (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))))))