function [ adj, t1_ij ] = tile148_adjacency ( )

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

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

  return
end

