%!TEX root = ../pmdraw.tex

% *------------------------------*
% |9````````````````````````````9|
% |`````____````____`````````````|
% |````|MFMF\  /MFMF|````````````|
% |````|MF|MF\/MF|MF|````````````|
% |````|MF|\MFMF/|MF|_______`````|
% |````|MF|``````|MFMFMFMFMF|````|
% |````|MF|``````|MF|````````````|
% |````|MF|``````|MF|___`````````|
% |``````````````|MFMFMF|````````|
% |``````````````|MF|````````````|
% |``````````````|MF|````````````|
% |``````````````|MF|````````````|
% |7````````````````````````````1|
% *------------------------------*

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                        %
% Licence                                                %
%                                                        %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 
% Copyright 2023-10-16 (original release) -- 2025, Matthias Fresacher
% 
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is found via
% http://www.latex-project.org/lppl.txt.

\pmdDiagram[grid]{
    { % Brick 1
        [ % Options
            degree=5,
            levels top=1,
            levels bottom=1,
            labels,
            labels top node={red,above=16pt}
        ]{ % Upper non transversal edges
            [height=1.1]{2}{5}
        }{ % Lower non transversal edges
            [height=0.3]{2}{5}
        }{ % Transversal edges
            {1}{1}
        }
    }{ % Brick 2
        [ % Options
            degree=2,
            levels top=1,
            levels bottom=1,
            labels,
            labels bottom options={
                \draw (#1,#2) node[below=6pt] {\(#3''\)};
            },
            labels bottom start=6,
            labels top start=-4
        ]{ % Upper non transversal edges
            {1}{2}
        }{ % Lower non transversal edges
            {1}{2}
        }{ % Transversal edges
            {1}{2}
        }
    }
}
