function [ adj, t1_ij ] = tile165_adjacency ( )

%*****************************************************************************80
%
%% tile165_adjacency() returns adjacency information for tile165.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 February 2021
%
%  Author:
%
%    John Burkardt
%
%  Output:
%
%    integer ADJ(36,3): ADJ(I,J) describes the J-th neighbor of the 
%    I-th 30-60-90 triangle.  Neighbor J=1 is across from the 30 degree angle,
%    J=2 from the 60 degree angle, and J=3 from the 90 degree angle.
%
%    integer t1_ij(3,2), the (i,j) vertex coordinates of 30-60-90 triangle #1.
%
  adj = [ ...
     2, 19,  6; ... % 1
     1, 20,  3; ... % 2
     4, -1,  2; ... % 3
     3, 24,  5; ... % 4
     6, 26,  4; ... % 5
     5, 25,  1; ... % 6
%
     8, 31, 12; ... % 7
     7, 32,  9; ... % 8
    10, 28,  8; ... % 9
     9, 29, 11; ... % 10
    12, 18, 10; ... % 11
    11, 17,  7; ... % 12
%
    14, 23, 18; ... % 13
    13, 22, 15; ... % 14
    16, 34, 14; ... % 15
    15, 35, 17; ... % 16
    18, 12, 16; ... % 17
    17, 11, 13; ... % 18
%
    20,  1, -1; ... % 19
    19,  2, 21; ... % 20
    -1, -1, 20; ... % 21
%
    23, 14, -1; ... % 22
    22, 13, 24; ... % 23
     4, -1, 23; ... % 24
%
    26,  6, -1; ... % 25
    25,  5, 27; ... % 26
    -1, 30, 26; ... % 27
%
    29,  9, -1; ... % 28
    28, 10, 30; ... % 29
    -1, 27, 29; ... % 30
%
    32,  7, -1; ... % 31
    31,  8, 33; ... % 32
    -1, -1, 32; ... % 33
%
    35, 15, -1; ... % 34
    34, 16, 36; ... % 35
    -1, -1, 35 ];   % 36

  t1_ij = [ ...
    0, 0; ...
    2, 2; ...
    2, 0 ];

  return
end

