function [ adj, t1_ij ] = serenity4_adjacency ( )

%*****************************************************************************80
%
%% serenity4_adjacency() returns adjacency information for serenity tile #4.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 April 2024
%
%  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, 28,  6; ... % 1
     1, 29,  3; ... % 2
     4, 36,  2; ... % 3
     3, -1,  5; ... % 4
     6, 25,  4; ... % 5
     5, 26,  1; ... % 6
%
     8, 14, 12; ... % 7
     7, 13,  9; ... % 8
    10, -1,  8; ... % 9
     9, -1, 11; ... % 10
    12, 34, 10; ... % 11
    11, 35,  7; ... % 12
%
    14,  8, 18; ... % 13
    13,  7, 15; ... % 14
    16, 32, 14; ... % 15
    15, 31, 17; ... % 16
    18, 24, 16; ... % 17
    17, 23, 13; ... % 18
%
    20, -1, 24; ... % 19
    19, -1, 21; ... % 20
    22, -1, 20; ... % 21
    21, -1, 23; ... % 22
    24, 18, 22; ... % 23
    23, 17, 19; ... % 24
%
    26,  5, -1; ... % 25
    25,  6, 27; ... % 26
    -1, -1, 26; ... % 27
%
    29,  1, -1; ... % 28
    28,  2, 30; ... % 29
    -1, 33, 29; ... % 30
%
    32, 16, -1; ... % 31
    31, 15, 33; ... % 32
    -1, 30, 32; ... % 33
%
    35, 11, -1; ... % 34
    34, 12, 36; ... % 35
    -1,  3, 35 ];   % 36

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

  return
end

