function [ AP, AL ] = graph_adj_list_octahedron ( )

%*****************************************************************************80
%
%% graph_adj_list_octahedron() sets up the adjacency list for the octahedron graph.
%
%  Discussion:
%
%      1---2
%     /|   |\
%    8-+---+-3
%    | |   | |
%    7-+---+-4
%     \|   |/
%      6---5
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    30 April 2026
%
%  Author:
%
%    John Burkardt
%
%  Output:
%
%    integer AP(node_num+1), AL(edge_num): the adjacency list. 
%
  L = [ ...
    1, 2; ...
    1, 6; ...
    1, 8; ...
    2, 3; ...
    2, 5; ...
    3, 4; ...
    3, 8; ...
    4, 5; ...
    4, 7; ...
    5, 6; ...
    6, 7; ...
    7, 8 ];

  [ AP, AL ] = graph_arc_to_adj_list ( L );

  return
end
