\begin{figure}[htbp] \centering \resizebox{\textwidth}{!}{% \begin{tikzpicture}[ vL/.style={circle, fill=black, draw=black, inner sep=1.7pt}, vR/.style={circle, fill=white, draw=black, thick, inner sep=1.7pt}, vS/.style={circle, fill=blue!15, draw=blue!70!black, thick, inner sep=1.6pt}, excl1/.style={very thick, blue!75!black}, excl2/.style={very thick, red!75!black}, chord/.style={semithick, black!65}, font=\scriptsize ] \begin{scope}[shift={(0,0)}] \node[font=\footnotesize\bfseries] at (0, 2.75) {(a) Outerplanar fan-cycle $H_\ell^*$ ($\ell = 5$)}; \def\R{1.90} \node[vR, label=above:$v_5$] (v5) at (90:\R) {}; \node[vL, label={[blue!75!black]above right:$q_1$}] (q1) at (64:\R) {}; \node[vR, label={[blue!75!black]right:$p_1$}] (p1) at (38:\R) {}; \node[vL, label=right:$u_1$] (u1) at (12:\R) {}; \node[vR, label=right:$v_1$] (v1) at (-14:\R) {}; \node[vL, label=below right:$u_2$] (u2) at (-40:\R) {}; \node[vR, label=below right:$v_2$] (v2) at (-66:\R) {}; \node[vL, label=below:$u_3$] (u3) at (-92:\R) {}; \node[vR, label=below left:$v_3$] (v3) at (-118:\R) {}; \node[vL, label=left:$u_4$] (u4) at (-144:\R) {}; \node[vR, label=left:$v_4$] (v4) at (-170:\R) {}; \node[vL, label=left:$u_5$] (u5) at (164:\R) {}; \node[vR, label={[red!75!black]above left:$p_2$}] (p2) at (138:\R) {}; \node[vL, label={[red!75!black]above left:$q_2$}] (q2) at (112:\R) {}; \draw[excl1] (v5) -- (q1); \draw[semithick] (q1) -- (p1); \draw[excl1] (p1) -- (u1); \draw[semithick] (u1) -- (v1) -- (u2) -- (v2) -- (u3) -- (v3) -- (u4) -- (v4) -- (u5); \draw[excl2] (u5) -- (p2); \draw[semithick] (p2) -- (q2); \draw[excl2] (q2) -- (v5); \draw[chord] (v5) -- (u2); \draw[chord] (v5) -- (u3); \draw[chord] (v5) -- (u4); \node[align=center, font=\scriptsize, text width=6.0cm] at (0, -3.15) {% All $14$ vertices lie on the outer face (outerplanar, bipartite).\\ \textcolor{blue!75!black}{\textbf{Blue}}: exclusive to $M^{(1)}$;\quad \textcolor{red!75!black}{\textbf{Red}}: exclusive to $M^{(\ell)}$.% }; \end{scope} \begin{scope}[shift={(8.2,0)}] \node[font=\footnotesize\bfseries] at (0, 2.75) {(b) Series--parallel theta gadget $B_{p,d'}$ ($p = 3,\; d' = 2$)}; \node[vL, label=left:$r$] (r) at (-2.75, 0) {}; \node[vR, label=right:$r'$] (rp) at (2.75, 0) {}; \node[vR] (t1) at (-1.65, 1.35) {}; \node[vL] (t2) at (-0.55, 1.65) {}; \node[vR] (t3) at (0.55, 1.65) {}; \node[vL] (t4) at (1.65, 1.35) {}; \draw[excl1] (r) -- node[above left, font=\tiny] {$e_{0,1}$} (t1); \draw[semithick] (t1) -- (t2); \draw[excl1] (t2) -- node[below, font=\tiny, yshift=-1pt] {$e_{0,2}$} (t3); \draw[semithick] (t3) -- (t4); \draw[semithick, dashed, blue!60!black] (t4) -- (rp); \node[blue!75!black, font=\tiny] at (0, 2.08) {path $k=0$ ($d'$ exclusive odd edges)}; \node[vR] (m1) at (-1.65, 0) {}; \node[vL] (m2) at (-0.55, 0) {}; \node[vR] (m3) at (0.55, 0) {}; \node[vL] (m4) at (1.65, 0) {}; \draw[excl2] (r) -- node[above, font=\tiny] {$e_{1,1}$} (m1); \draw[semithick] (m1) -- (m2); \draw[excl2] (m2) -- node[below, font=\tiny, yshift=-1pt] {$e_{1,2}$} (m3); \draw[semithick] (m3) -- (m4); \draw[semithick, dashed, red!60!black] (m4) -- (rp); \node[red!75!black, font=\tiny] at (0, 0.36) {path $k=1$}; \node[vR] (b1) at (-1.65, -1.35) {}; \node[vL] (b2) at (-0.55, -1.65) {}; \node[vR] (b3) at (0.55, -1.65) {}; \node[vL] (b4) at (1.65, -1.35) {}; \draw[very thick, holdsK!70!black] (r) -- node[below left, font=\tiny] {$e_{2,1}$} (b1); \draw[semithick] (b1) -- (b2); \draw[very thick, holdsK!70!black] (b2) -- node[above, font=\tiny, yshift=1pt] {$e_{2,2}$} (b3); \draw[semithick] (b3) -- (b4); \draw[semithick, dashed, holdsK!60!black] (b4) -- (rp); \node[holdsK!60!black, font=\tiny] at (0, -2.08) {path $k=2$}; \node[align=center, font=\scriptsize, text width=6.4cm] at (0, -3.15) {% Simple, planar, bipartite, series--parallel (treewidth $2$).\\ Exactly $p$ perfect matchings $M^{(0)}, \dots, M^{(p-1)}$ (no spurious factors).% }; \end{scope} \end{tikzpicture}% } \caption{The two treewidth-$2$ planar bipartite variable gadgets powering Theorem~\ref{thm:mod-trichotomy}. (a)~The fan-cycle $H_\ell^*$ (shown for $\ell = 5$): subdividing the two \emph{outer} cycle edges $\{u_1, v_\ell\}$ and $\{u_\ell, v_\ell\}$ preserves genuine outerplanarity while supplying two exclusive edges each for $M^{(1)}$ (blue) and $M^{(\ell)}$ (red) among the exact $\ell$ perfect matchings. (b)~The series--parallel theta gadget $B_{p, d'}$ (shown for $p = 3, d' = 2$): $p$ internally disjoint odd paths of length $2d'+1$ between poles $r, r'$ encode a $p$-ary variable $y \in \{0, \dots, p-1\}$ with $d'$ labeled exclusive odd edges (solid) and one unlabeled $(d'+1)$-th odd edge incident to $r'$ (dashed) on each path.} \label{fig:gadgets} \end{figure}