\subsection{Undirected indexing with arbitrary backgrounds} \label{sec:undirected-background-index} We now remove the positive-excess condition on each individual component. Throughout this appendix graphs are finite, simple, undirected and unlabelled. For a connected component $C$, write $e(C)=|E(C)|-|V(C)|$, and define \[ \kappa(G)=\sum_{C\in\operatorname{Comp}(G)}\max(e(C),0). \] Every nonempty connected graph is a tree, a unicyclic graph, or has positive excess. These are intrinsic, disjoint alternatives. Accordingly, \begin{equation} G=G_+\mathbin{\dot\cup}H, \qquad H\in\mathcal B_\Delta :=\operatorname{MSET}(\mathcal F_\Delta+\mathcal U_\Delta), \label{eq:undirected-background-split} \end{equation} where $G_+$ consists of the positive-excess components, $\mathcal F_\Delta$ consists of free trees, and $\mathcal U_\Delta$ consists of connected simple unicyclic graphs. A missing degree cap means that all degrees are allowed. For the bipartite version use only even cycle lengths in $\mathcal U_\Delta$. The plus sign between the component classes is a disjoint union of alphabets, with a type tag. \paragraph{The component alphabet and its order.} Fix a size limit $N=\max(1,n)$. Lemma~\ref{lem:free-tree-index} provides the size-$s$ tree count $f_s$ and its centroid-first index. Corollary~\ref{cor:unicyclic-component-oracle} provides the unicyclic count $u_s$ and its cycle-length-first, least-bracelet index. In particular, the latter alphabet counts each rooted tree at a cycle vertex including that vertex. Its root has capacity $\Delta-2$ and its other vertices have capacity $\Delta-1$. This differs from the free-tree centroid, whose capacity is $\Delta$. Order the combined component alphabet first by size, then by the tag ``tree before unicyclic'', then by its within-type index. Its grade size is $c_s=f_s+u_s$, for $s\ge1$, and $c_0=0$. A numerical token identifies the size, type and rank by subtracting cumulative grade counts and $f_s$. All its count, rank and unrank operations are polynomial-bit operations, uniformly in an input degree cap normalized to $0\le\Delta\le N-1$. Neither component alphabet is listed. \paragraph{A background is one letter, not a growing vector of slots.} For an ordinal threshold $L$ in this combined alphabet let $c_s(L)$ be the number of size-$s$ component letters with ordinal at least $L$. Size-first order makes these counts simple interval intersections. Put \begin{equation} H(R,L)=[z^R]\prod_{s=1}^{N}(1-z^s)^{-c_s(L)}. \label{eq:background-mset-tail} \end{equation} The count at size $R$ is $b_R=H(R,0)$. In particular $b_0=1$: the empty graph is one background letter, whereas it is not a component letter. This distinction is needed at $k=0$ and at empty background. Within a fixed background size, use the lexicographic order of the nondecreasing word of component ordinals. Lemma~\ref{lem:mset-index} applies directly. More explicitly, if the residual weight is $R>0$, the current lower bound is $L$, and the next letter is $a\ge L$, its preceding-block count is \[ H(R,L)-H(R,a). \] Removing one copy of the minimum component proves the continuation identity \[ H(R,a)-H(R,a+1)=H(R-\wt(a),a). \] Binary search for the next ordinal and recursive subtraction therefore rank and unrank the whole multiset. Components are decoded only after their numerical tokens have been selected. Because each component has positive size, there are at most $N$ selected components. There is no division by a component factorial: repeated isomorphic components are already counted by the multiset coefficients. For clarity, the factor of weight $s$ in \eqref{eq:background-mset-tail} is evaluated as \[ \sum_{t=0}^{\lfloor R/s\rfloor} \binom{c_s(L)+t-1}{t}z^{st}, \] with only the constant term when $c_s(L)=0$. A one-dimensional coefficient table suffices. The degree cap does not add resource axes, and the number of graph components does not add slots to the outer group action. The fixed number of child-count axes inside the rooted-tree oracles was already charged in their uniform bounds. \begin{theorem}[Undirected indexing with arbitrary tree and unicyclic backgrounds] \label{thm:undirected-background-index} For prescribed $n,k\ge0$, the isomorphism classes of simple undirected graphs with $n$ vertices and $\kappa(G)=k$ admit count, rank and unrank in \[ 2^{O(k\log(k+1))}\operatorname{poly}(n+1) \] bit time and bit space. The polynomial exponent is absolute and independent of $k$. The same conclusion holds with an input maximum degree and with a bipartiteness requirement, separately or together; the exponent is also independent of that degree bound. Reading the original input encoding is charged separately. For the unrestricted or degree-capped version the order is canonical positive-excess multikernel first, then lexicographic order of the canonical signed decoration vector with the entire background as one fixed final slot. Its background alphabet has the order just specified. For the bipartite version an edge-parity-pattern orbit is inserted between the kernel and the decoration vector, as in the earlier signed application. These are prescribed orders on graph isomorphism classes. \end{theorem} \begin{proof} For $k>0$, extract the multikernel of $G_+$ as in Lemma~\ref{lem:undirected-kernel}. It has at most $2k$ vertices and $3k$ edges. The sum of the positive component excesses is preserved by deleting attached trees and suppressing degree-two paths. Hence its catalogue, its signed incidence-compatible automorphism group, and its vertex and edge decoration alphabets are exactly those used in Theorem~\ref{thm:undirected-index}. The original graph is simple precisely under the same conditions: loop words have length at least two and each nonloop parallel bundle has at most one empty word. Adding disjoint background components introduces no new collisions. Adjoin one new slot, fixed pointwise by the kernel group, for $H$. Give this slot a distinct type, alphabet $\mathcal B_\Delta$, and the identity involution. Every background letter is therefore of fixed kind $\mathrm F$, and there are no paired letters of kind $\mathrm P$. Its grade counts are $(b_R,0)$. Its orbit-token rank and unrank are just the multiset index above, including the unique weight-zero letter. Thus all the hypotheses of Theorem~\ref{thm:signed-index} are supplied, not merely the ability to recognize background isomorphism. The total number of slots is at most $5k+1$. The signed finite-slot prefix count now uses a single total-vertex weight for the core decorations and background together. A separate enumeration over all vectors of component sizes or slot weights is not needed. In particular, the index is not implicitly reordered by background size before the other decoration entries. The background grade is chosen where its final slot occurs in the declared tuple order. The decomposition \eqref{eq:undirected-background-split} is intrinsic: an isomorphism preserves component size and edge count and cannot exchange a positive-excess component with a tree or a unicyclic component. Isomorphisms among the components of $G_+$ are already represented by the possibly disconnected kernel's joint signed group. Isomorphisms among the components of $H$ are exactly those of its multiset. These facts, the kernel-decoration bijection, and the fixed last slot establish a bijection between admissible signed tuple orbits and the graph classes in the theorem. To rank an actual graph, find its connected components and split them by excess. Extract the decorated multikernel of $G_+$, transport it to the canonical kernel representative, and normalize its decoration tuple under the signed group. Find the centroid or the unique cycle of each component of $H$, rank its tree or bracelet code, and sort the resulting component tokens. The multiset oracle gives the background token. Different kernel transports differ by a group element and do not alter the canonical tuple. Unranking reverses these operations: unrank the tuple, expand its kernel decorations, decode its background multiset, and take their disjoint union. Both operations are defined on the actual unrooted, unoriented graph class. For a degree cap, use the capped alphabets of the positive-excess application together with the capped background oracles proved above. Every vertex degree is then checked in its own component construction. For bipartiteness, use only even cycles in the background. In the positive part use the feasible edge-parity-pattern orbits and their stabilizers from the signed bipartite corollary. Append the same fixed background slot after that split. Colouring feasibility is tested without counting choices of colours, so there is no extra factor of two per component. The additional parity-pattern work depends only on $k$. If $k=0$, the positive part is empty and there is one empty kernel, with the single background slot. Thus the same construction indexes all unlabelled pseudoforests, including the empty graph at $n=0$. For $\Delta=0$ its only connected background type is the singleton; for $\Delta=1$ it consists of singletons and single edges. For $\Delta=2$ it consists of paths and cycles of length at least three, with only even cycles in the bipartite version. A positive-excess component is impossible for every $\Delta\le2$, so when $k>0$ those inputs have count zero. At $n=0$ likewise only $k=0$ is possible. It remains to verify that these compositions are uniform polynomial operations. The capped rooted-tree tables have a fixed number of resource axes, independent of the cap; their grade counts are at most $4^s$, since each unlabelled rooted tree has a plane rooted-tree representation. Thus the ordinal bit lengths are $O(N)$ and the time, space and encoding bounds have fixed polynomial exponents independent of the degree cap. These are the uniform premises required by the explicit interface-cost ledger in Appendix~\ref{sec:weighted-bracelet-oracle}, not merely polynomiality separately for each cap. The free-tree and bracelet constructions, followed by the one-dimensional multiset formula, preserve this uniformity. Every size-$s$ component or background class is a class of simple graphs, so its count is at most $2^{\binom{s}{2}}$ (with the harmless singleton convention at small sizes). Consequently grade ordinals have $O((N+1)^2)$ bits. Intermediate multiset coefficients and binomial arguments also have polynomial bit length: a residual object contains at most $N$ positive weight letters, each selected from an alphabet with polynomial-bit cardinality. The number of coefficient-table resource axes is constant. Binary search and final decoding make only polynomially many calls to these oracles; recursive tree decoding visits only the selected vertices. All further group and template work is bounded by $2^{O((5k+1)\log(5k+2))}=2^{O(k\log(k+1))}$ for $k\ge1$, with a constant bound at $k=0$. The signed theorem performs polynomial weight convolutions over these parameter-bounded templates, rather than a table with a separate weight dimension for each slot. Its polynomial degree therefore remains independent of $k$. No exact degree $9$, $10$ or $12$ from the directed cost ledger is transferred to this construction: the bracelet oracle has a different, deliberately conservative cost. This proves the asserted time and space bounds. \end{proof} \paragraph{What has and has not been extended.} If $t(G)$ is the number of tree components, then \[ |E(G)|-|V(G)|=\kappa(G)-t(G). \] Thus the parameter used here is net excess plus the number of tree components; it is not net excess alone. Adding arbitrarily many isolated vertices keeps $\kappa$ unchanged. Proposition~\ref{prop:net-excess-gi} about fixing net excess therefore does not conflict with this theorem. The theorem extends the graph class of the earlier signed application; it asserts neither a linear-delay generator nor ordinary adjacency-array lexicographic ranking. Free-tree and bracelet indexing, multiset composition, graph substitution and finite-group splitting have classical antecedents~\cite{Wilf1989Update,AGPD2021,Adamson2021,Molinero2005,GJ2000}; see also Appendix~\ref{sec:e6-prior-derivation}. Once the tree and unicyclic component oracles are available, adding the background as one fixed slot is a short composition. The work verified here is the implicit weighted dihedral oracle and its compatible signed index and uniform bit bounds. The same-contract adaptation in Appendix~\ref{sec:old-method-graph-contract} supplies a qualitative comparison. Historical priority and superiority over optimized adaptations remain unestablished; the quantitative comparison here is with the explicit dense baseline.