%!TEX root = ../pmdraw.tex

% *------------------------------*
% |8````````````````````````````7|
% |`````____````____`````````````|
% |````|MFMF\  /MFMF|````````````|
% |````|MF|MF\/MF|MF|````````````|
% |````|MF|\MFMF/|MF|_______`````|
% |````|MF|``````|MFMFMFMFMF|````|
% |````|MF|``````|MF|````````````|
% |````|MF|``````|MF|___`````````|
% |``````````````|MFMFMF|````````|
% |``````````````|MF|````````````|
% |``````````````|MF|````````````|
% |``````````````|MF|````````````|
% |2````````````````````````````8|
% *------------------------------*

\pmdProduct
[ % Options
    row sep=3,
    diagram sep=2,
    dots options={
        \draw (#1,#2) node[red] {\(\dots\dots\)};
    }
]{ % Added edges
    {1}{3}
    {7}{11}
    {18}{21}
}{ % Top Diagram
    { % Brick 1
        [ % Options
            degree top=3,
            degree bottom=4
        ]{ % Upper non transversal edges
            \pmdEmpty
        }{ % Lower non transversal edges
            \pmdEmpty
        }{ % Transversal edges
            {1}{2}
            {2}{3}
            {3}{4}
            {7}{1}
        }
    }{ % Brick 2
        [ % Options
            degree top=7,
            blank bottom=1,
            degree bottom=5,
            levels=2
        ]{ % Upper non transversal edges
            [level=2]{3}{16}
            {4}{5}
            {6}{7}
        }{ % Lower non transversal edges
            {3}{4}
            {5}{6}
        }{ % Transversal edges
            {1}{2}
        }
    }{ % Brick 3
        [ % Options
            blank top=3,
            degree top=5,
            blank bottom=4,
            degree bottom=4,
            levels=2
        ]{ % Upper non transversal edges
            {4}{5}
            {6}{7}
        }{ % Lower non transversal edges
            {5}{6}
            {7}{8}
        }{ % Transversal edges
            \pmdEmpty
        }
    }
}{ % Bottom Diagram
    { % Brick 1
        [ % Options
            degree top=3,
            degree bottom=4
        ]{ % Upper non transversal edges
            \pmdEmpty
        }{ % Lower non transversal edges
            \pmdEmpty
        }{ % Transversal edges
            {1}{2}
            {2}{3}
            {3}{4}
            [height=1.5]{7}{1}
        }
    }{ % Brick 2
        [ % Options
            degree top=7,
            blank bottom=1,
            degree bottom=5,
            levels=2
        ]{ % Upper non transversal edges
            [level=2]{3}{16}
            {4}{5}
            {6}{7}
        }{ % Lower non transversal edges
            {3}{4}
            {5}{6}
        }{ % Transversal edges
            {1}{2}
        }
    }{ % Brick 3
        [ % Options
            blank top=3,
            degree top=5,
            blank bottom=4,
            degree bottom=4,
            levels=2
        ]{ % Upper non transversal edges
            {4}{5}
            {6}{7}
        }{ % Lower non transversal edges
            {5}{6}
            {7}{8}
        }{ % Transversal edges
            \pmdEmpty
        }
    }
}