%!TEX root = ../pmdraw.tex

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

\pmdDiagram[grid]{
    { % Brick 1
        [ % Options
            degree=2,
            brace node=red,
            edges transversal=blue,
            brace={
                left=1,
                right=4,
                label={p - 1}
            }
        ]{ % Upper non transversal edges
            \pmdEmpty
        }{ % Lower non transversal edges
            \pmdEmpty
        }{ % Transversal edges
            {1}{1}
            {2}{2}
        }
    }
    { % Brick 2
        [ % Options
            degree top=6,
            degree bottom=5,
            dots node=blue,
            edges upper=red,
            edges lower=green,
            edges transversal=blue
        ]{ % Upper non transversal edges
            {3}{4}
            {5}{6}
        }{ % Lower non transversal edges
            {2}{3}
            {4}{5}
        }{ % Transversal edges
            [height=1]{2}{10}
            {1}{1}
        }
    }{ % Brick 3
        [ % Options
            degree top=2,
            blank top=1,
            degree bottom=3
        ]{ % Upper non transversal edges
            {2}{3}
        }{ % Lower non transversal edges
            {1}{2}
        }{ % Transversal edges
            \pmdEmpty
        }
    }
}