\section{Generation at exact branching excess} \label{sec:response-generation} We use the branching excess and graph conventions of Section~\ref{sec:compact-conventions}; opposite arcs are permitted. A sink has outdegree zero, and an \emph{ordinary source} has indegree zero and outdegree one. A degree pair lists indegree first and outdegree second. In this section, source-free means that no ordinary source remains; branching vertices of indegree zero may still occur. An ordinary source's pendant chain continues through vertices of degree pair $(1,1)$, stopping before the first different attachment vertex. We generate one representative of every isomorphism class at prescribed size $n$ and exact excess $k$. A \emph{full-delay} bound includes the time before the first output and after the last, as well as every gap between outputs. Working space is measured in words sufficient for vertex identifiers and normalized parameters. Degree caps are nonnegative integers, normalized to at most $n$ or marked unbounded; arbitrarily long input encodings additionally incur their reading cost. The empty graph is handled separately: it has excess zero and is not included when connectedness is required. \begin{theorem}[Quadratic delay with linear working space] \label{thm:response-quadratic} For fixed $k\ge0$ and $n\ge1$, all unlabelled simple $n$-vertex digraphs with $e_+=k$ can be generated with $O_k(n^2)$ full delay and $O_k(n)$ working words. Any combination of weak connectedness, loop exclusion, and uniform upper bounds on indegree and outdegree is permitted. \end{theorem} The proof appears in Appendix~\suppref{sec:de4-quadratic} and its connected and degree-capped continuations. For the possibly disconnected class, Section~\ref{sec:main-e4-contract-comparison} also gives a short classical-method derivation of the quadratic bound. A different construction improves the delay in that class. \begin{theorem}[Near-linear delay at arbitrary directed height] \label{thm:response-nearlinear} For fixed $k\ge0$ and $n\ge1$, all unlabelled simple $n$-vertex digraphs with $e_+=k$ can be generated with deterministic full delay \[ O_k\bigl(n\log^3(n+2)\bigr) \] and $O_k(n\log^2(n+2))$ working words. Loops may be forbidden, and uniform upper bounds on both indegree and outdegree may be supplied. This theorem concerns the possibly disconnected class. For $k=0$ its background generator has linear full delay and linear working space. \end{theorem} The second theorem trades linear workspace for a polylogarithmic factor; it does not improve the connected guarantee. Both results require more than a canonical parent: the exact-size search must avoid long stretches without output, and its actual parent and child queries must meet the stated cost bounds. The two constructions address this in different ways. The connected construction contracts sequences of preferred extensions, so that a smaller search state represents a graph of exactly the target size. The faster, possibly disconnected construction instead completes each positive-excess part with all backgrounds of the remaining size. The common objective is to ensure that each visited search state yields an output; the later cost analysis bounds the work needed to move between these states. \subsection{Comparison with direct adaptations of older algorithms} \label{sec:main-e4-contract-comparison} There is a simpler baseline for the same possibly disconnected class. Retain all arcs leaving vertices of outdegree at least two. This intrinsic seed has at most $2k$ arcs and $3k$ nonisolated vertices; pad it with isolates to the target size. Within one seed stratum, add an arc only at a vertex of outdegree zero. Every state already has exactly $n$ vertices and excess $k$, and both degree caps survive the inverse deletion. Hence exact excess does not force a size-filtered vertex-reduction search. The deletions commute, so Ramon--Nijssen's dense-augmentation framework applies after its directed and root-group interfaces are checked \cite[Theorems~1 and~5]{RN2009}. It gives the first row below, with potentially exponential retained storage. Alternatively, choose the first outdegree-one arc in a canonical labelled representative as the parent deletion. A complete child query scans at most $n^2$ additions, each costing $O_k(n)$ for sparse canonization and the parent test. Keeping only the least accepted complete code above the previous child's code removes duplicate realizations without storing a child catalogue. Classical reverse search and alternating output then give the cubic, linear-space second row \cite{McKay1998,avis96,Uno2003}. A stronger baseline uses the intrinsic split into positive-excess components and a zero-excess background. On the positive part, delete an ordinary source if possible; otherwise suppress a legal $(1,1)$ vertex. Select the first eligible vertex in a canonical representative. A terminal core with no ordinary source has at most $3k$ exceptional vertices and $4k$ connecting paths, each with at most one ordinary internal vertex, so at most $7k$ vertices. The inverse list needs only source attachments and arc subdivisions: at most $2n+k$ trials. Testing each separately gives $O_k(n^2)$ child queries. At each positive-core event, emit all backgrounds of the remaining size; isolated sinks witness that every such fibre is nonempty. The capped background iterator's full-gap guarantee is a stated dependency, not inferred from a CAT bound. This proves the third row below without preferred rays or dynamic batches (Proposition~\suppref{prop:e4-quadratic-classical-baseline}). These are deductions from established methods, not exact graph theorems quoted from those sources. The complete proofs, including all boundary gaps, are Propositions~\suppref{prop:e4-rn-exact-seeds}, \suppref{prop:e4-cubic-seed-baseline}, and~\suppref{prop:e4-quadratic-classical-baseline}. \begin{center} \small \begin{tabular}{@{}P{.28\textwidth}P{.24\textwidth}P{.23\textwidth}P{.16\textwidth}@{}} \toprule Construction & Full delay & Working storage & Connected option\\ \midrule Dense augmentation on seeds & $F(k)(n+1)^5$ operations$^\dagger$ & potentially exponential & not proved\\[1ex] Canonical seed traversal & $O_k(n^3)$ & $O_k(n)$ words & not proved\\[1ex] Two-rule positive core plus background & $O_k(n^2)$ & $O_k(n)$ words & not proved\\[1ex] Theorem~\ref{thm:response-quadratic} & $O_k(n^2)$ & $O_k(n)$ words & yes\\[1ex] Theorem~\ref{thm:response-nearlinear} & $O_k(n\Lambda(n))$ & $O_k(n\log^2(n+2))$ words & no\\ \bottomrule \end{tabular} \end{center} Here $F(k)=2^{O(k\log(k+1))}$ and $\Lambda(n)=\log^3(n+2)$. All rows permit the same loop convention and both degree caps, include whole-graph output and finite root work, and prescribe no particular listing order. The last four rows use the ordinary-word model of this paper. $^\dagger$The first uses the source's elementary-operation model for a potentially exponential table; its pointers need not fit an ordinary word. Appendix~\suppref{sec:e4-rn-seed-baseline} states this model distinction explicitly. It is the second row that provides a direct comparison in the same small-space model; the third row strengthens it to the quadratic bound. For example, the seed $v\to a,v\to b$ has excess one. After padding with a fourth vertex $c$, each of $a,b,c$ may have no outgoing arc or one outgoing arc; none can become a new branch vertex. Thus every state has the requested size and excess, before any canonical test. The disconnected quadratic guarantee is therefore a short classical-method synthesis. The residual E4 comparisons are the nearly linear delay--space tradeoff and the connected quadratic construction. Different freely chosen listing orders are not an independent novelty distinction. \subsection{Reduction rules and finite roots} \label{sec:main-reduction-rules} The loop-permitting reduction system has five operations: \begin{enumerate} \item delete an isolated sink; \item delete an isolated one-vertex loop component; \item delete an ordinary source; \item delete an indegree-one sink whose predecessor has outdegree one; \item suppress a non-loop $(1,1)$ vertex $p\to v\to w$, replacing its two incident arcs by $p\to w$, only when that shortcut is absent. The case $p=w$ is allowed. \end{enumerate} Each operation preserves branching excess. A graph is \emph{irreducible} when none applies. To obtain a parent function, first choose a canonical labelled representative. Give isolated-sink deletion first priority; next delete an ordinary source on a longest pendant chain, breaking ties in that representative; then use the remaining applicable rules in a fixed order. Only the resulting parent isomorphism class matters. For connected generation terminal small graphs are treated separately. With degree caps the connected construction changes the later priorities and the preferred extension, as specified in its companion proof; the source-chain example below does not define every such variant. For $k>0$, irreducible roots have at most $4k$ vertices. The loopless system forbids suppressions that create a loop and handles isolated directed two-cycles separately; its root bound is $5k$. The finite roots can therefore be searched within a parameter-only cost, including failed root trials and transitions, without storing previously generated outputs. Zero-excess terminal exceptions are handled directly. This cost is included in $O_k$ and need not be practical for growing $k$. The finite roots also have a useful structural refinement. For exactly the five loop-permitting reductions just stated, Appendix~\suppref{sec:four-k-equality} classifies every irreducible graph attaining the bound $4k$: it is obtained from a $k$-vertex functional digraph of indegree at most two by attaching fixed three-vertex gadgets to its indegree deficits. This is a reduction-specific equality theorem. Binary-mapping enumeration and the related degree arithmetic in phylogenetic kernels are classical; the appendix explains the comparison, including cyclic generators. The classification does not improve the delay or parameter factor for all remaining roots. For loop exclusion the reduction system is modified and uses a $5k$ root bound; the $4k$ equality classification is not asserted for that different system. \subsection{One family: from withheld outputs to output states} In the connected construction, a \emph{preferred extension} $E$ is chosen to add one vertex while satisfying $P(E(H))\cong H$ and preserving the target class. Its iterates form disjoint extension rays. A \emph{base} is a graph $B$ with no parent or with $E(P(B))\not\cong B$; repeatedly undoing preferred extensions gives the unique base $\operatorname{Base}(H)$. The projected parent of a base is $\operatorname{Base}(P(B))$ when defined. A base of size at most $n$ then represents the size-$n$ output $E^{n-|V(B)|}(B)$. Establishing such an extension under all degree caps requires the separate construction in the companion. The following family illustrates the ordinary-source case. Let $J(L,S)$, $L\ge S\ge1$, have vertices $b,b',r,r'$ and arcs \[ b\to b',\quad b'\to b,\quad b\to r,\quad r\to r',\quad r'\to r, \] with two disjoint incoming paths of lengths $L,S$ attached to $r$. Length counts new vertices. This loopless connected graph has $4+L+S$ vertices, excess one, indegree at most four and outdegree at most two. Its two pendant paths are its ordinary source chains. In the reduction forest, the parent $P$ deletes the tip of a longest source chain; the preferred extension $E$ prepends a vertex to one. Thus $P(J(L,S))\cong J(L-1,S)$ when $L>S$ and $E(J(L,S))\cong J(L+1,S)$. Equal paths are interchangeable by an automorphism. Put $B_s=J(s,s)$. For $s\ge2$, \[ P(B_s)\cong E(B_{s-1}),\qquad E(P(B_s))\not\cong B_s. \] Consequently the bases $B_s$ form a path in the search obtained by contracting preferred-extension rays. At target size $n\ge4+2s$, its state $B_s$ represents the actual connected output \[ \Phi_n(B_s)=E^{\,n-4-2s}(B_s)\cong J(n-4-s,s). \] The difference matters quantitatively. In the ordinary forest, the path between $J(n-5,1)$ and $J(n-6,2)$ has $2n-14$ edges for $n\ge8$; all its internal vertices have fewer than $n$ graph vertices. This is not a claim that these outputs are consecutive in the full enumeration. It shows why a correct reduction tree, filtered for size $n$, supplies no immediate bound on unreported work. In the projected forest every visited base already represents a size-$n$ output. The long extension is materialized directly rather than by repeatedly canonizing each intermediate graph. Use Uno's alternating-output method~\cite[Section~2]{Uno2003}: output even-depth nodes on entry and odd-depth nodes on exit. Between outputs, at most two parent and two child queries are required, including initialization and exhaustion within one tree (Lemma~\suppref{lem:e4-alternating-all-output}). Only the current node, a departing-child key and a parity bit are retained. Finite-root transitions have parameter-only cost. The projected child analysis must include exits late along a contracted ray; the corresponding lemmas in Appendix~\suppref{sec:de4-capped-rays} give $O(n+k)$ trials per query, each with $O_k(n)$ construction and parent-test cost. This establishes the quadratic bound, rather than merely a correctness argument for contraction. \subsection{Positive components and nonempty background fibres} For the faster, possibly disconnected algorithm, split each graph intrinsically as \[ G=H\mathbin{\dot\cup}B, \] where $H$ contains its positive-excess weak components and $B$ its zero-excess components. A component has zero excess exactly when every vertex has outdegree at most one. Hence $B$ is a partial functional digraph. Here the positive-component core $H$ is the whole positive part, not the suppressed multikernel used for indexing. The split is preserved by every isomorphism. Traverse all positive-component cores $H$ of excess $k$ with $|V(H)|\le n$. At the designated output event for $H$, emit its entire \emph{fibre} of backgrounds of size $n-|V(H)|$. Every fibre is nonempty: that many isolated sinks always form a permitted background, including with both degree caps and loop exclusion. Different cores and backgrounds give different graph classes by the intrinsic split. The same family makes the change of output object concrete. At size twelve, the connected ray construction and the fibre construction use the following data: \[ \begin{array}{c|c|c} \text{positive core}&\text{connected ray output}&\text{background size}\\\hline B_1=J(1,1)&J(7,1)&6\\ B_2=J(2,2)&J(6,2)&4\\ B_3=J(3,3)&J(5,3)&2\\ B_4=J(4,4)&J(4,4)&0. \end{array} \] The last column specifies a whole fibre, not just isolated padding. For $B_3$, admissible two-vertex backgrounds include two isolated sinks, one directed edge and a directed two-cycle. The faster algorithm visits all positive cores, not only the displayed ray bases; the two constructions use different search objects and need not have the same output order. \subsection{Why the positive-core queries are fast} Fix a current positive part $H$, called the \emph{host}. A child query must test many local modifications of $H$ and identify their canonical parents. Rebuilding a complete canonical code for every trial would give the quadratic bound. The faster construction preprocesses the host once and represents each trial by a short description of its changes. The argument below explains why these descriptions stay short even when the host contains long directed chains. Choose one outgoing arc at each nonsink of $H$, obtaining a partial functional \emph{spine}. Exactly $k$ extra arcs remain. Order these arcs and give their $2k$ endpoint occurrences distinct marks. Every weak component of the spine contains a mark: otherwise no extra arc would meet it, making it an entire zero-excess component of $H$. There are therefore at most $2k$ spine components. For a cyclic spine component, its least mark selects the unique cycle root whose attached tree contains that mark. This anchors the directed cycle word. Ordinary source leaves are unmarked, so inserting or deleting one changes neither the anchor nor the component order. Minimizing the resulting complete code over at most $2^k k!$ marked spine choices gives a canonical graph. Equal minimizing choices give the same labelled decode, so their physical selected leaves lead to isomorphic parents. The marks are an internal device; they add no structure to the output graph. The expensive part is updating its attached trees for many candidate leaves. For a coloured rooted tree, use the code \[ c(v)=\textnormal{(}\,\operatorname{col}(v) c(c_1)\cdots c(c_d)\,\textnormal{)}, \] ordering children by subtree size and then by their actual code. Sizes are sorting metadata, not symbols repeated inside the code. Choose the last largest child as heavy; it is also last in the child list. Fix the original host and a constant combined edit budget $C$, chosen to bound the total perturbation of two child sizes. At a vertex with at least two children, let $h_1,h_2$ be the largest and second-largest host child sizes. A heavy arrival can change the sorted position only when $h_1-h_2\le C$. Light arrivals at least double the subtree size; such nearly balanced heavy arrivals increase it by a fixed factor outside $O(C)$ small cases. There are therefore $O_C(\log n)$ critical ancestors per attachment path. Their host-based jump links are static and serve both batches of edits. Between them, an unchanged prefix and suffix surround the changed subtree. Thus even a very long unbalanced chain requires only $O(\log n)$ host-text pieces per variant. The host preprocessing uses the older persistent-string structure of Alstrup--Brodal--Rauhe \cite[Section~4, Lemma~5; Appendices~B--C]{ABR1998}; the proceedings version states the same slower comparison interface \cite[Lemma~4.1]{ABR2000}. Put $L=\log(s+2)$ for an $s$-vertex host. There are $O(sL)$ child-sort comparisons and $O(s)$ string constructions. With unit-cost signature access these take $O(sL^2)$ operations. Replacing signature access by deterministic balanced dictionaries costs another $O(L)$ factor in time, while retaining every temporary signature and string costs $O(sL^2)$ words. Host preprocessing therefore takes $O(sL^3)$ time and $O(sL^2)$ space. Each variant adds $O(L^3)$ time; the detailed proof is Proposition~\suppref{prop:e4-abr-rooted-batch}. The companion includes the more conservative Mehlhorn--Sundar--Uhrig implementation as an independent baseline \cite{MSU1997}. Dynamic strings and their tree-isomorphism applications also include Gawrychowski et al.~\cite{GKKLS2016}; their high-probability update bound is not being substituted for a deterministic one here. Static longest common extension (LCE) queries then compare the piece lists. The rooted batch lemma (Appendix~\suppref{sec:e4-heavy-rooted-batch}) also maintains the longest ordinary source chain and its first physical leaf. This annotation is used by the present full-parent-code implementation: a candidate's canonical parent can delete an old leaf, not necessarily the inserted one. The algorithm first builds the leaf candidates, finds their actual selected deletions, and then performs an adaptive second batch to test their full parent codes. A common substring-comparison structure covers different host trees and spines; local type numbers alone would not suffice. These batches are complete. If a child has an ordinary source, transport its selected deletion through the parent isomorphism: its class is an ordinary leaf attachment to the host. A source-free child cannot reduce to a source-bearing host under the remaining rules. For a source-free positive core, at most $3k$ vertices have degree pair different from $(1,1)$. Maximal ordinary paths between them give at most $4k-s$ directed sides, where $s$ counts sinks. Subdividing any arc on one side gives the same isomorphism class, even when its arcs are not related by host automorphisms. Together with $s$ sink extensions, at most $4k$ further trials suffice. Their complete canonizations can be charged individually. Appendix~\suppref{sec:e4-positive-component-batch} proves the resulting near-linear parent and child query bounds. An old-leaf example clarifies the scope of that implementation. Take $H$ with arcs $0\to4$, $1\to2,1\to3,1\to4$ and the cycle $2\to3\to4\to2$. Under the explicit code convention, $H+(5\to2)$ selects old leaf $0$, whose deletion still gives $H$ up to isomorphism. But $H+(5\to3)$ is the same child class and selects new leaf $5$. In general, transporting a canonical deletion through a parent isomorphism yields a realization in which the new leaf belongs to the selected deletion orbit. Thus an orbit-aware insertion test can be complete; equality with a single physical handle is a different test: in $H+(5\to4)$ the leaves $0$ and $5$ are twins, exchanged by an automorphism. An implementation may return physical handle $0$ although the inserted leaf $5$ is in the same selected orbit. Rejecting that labelled trial on handle inequality does not implement an orbit test. The second batch implements full parent-code equality here, without a claim of universal necessity. Appendix~\suppref{sec:old-leaf-orbits} gives the isomorphism and the general transport argument. It also implements the orbit test with a secondary vertex mark while keeping the original cycle anchors fixed. Letting the secondary mark select an anchor could change the cycle cut or component order, invalidating the unchanged-anchor argument. That alternative has the same asymptotic bounds; it still requires an adaptive marked batch. \paragraph{What the dynamic-string comparison establishes.} Persistent lexicographic string comparison also predates this work: Alstrup--Brodal--Rauhe provide it explicitly~\cite[Theorem~2.2]{ABR2000}. Their displayed update bound assumes constant-time signature-dictionary lookup. The specialization above explicitly pays for deterministic balanced dictionaries, uses only their slower semantic comparison, and discards the entire workspace between host queries. The resulting improvement comes from applying an older backend more carefully, not from inventing a persistent-string operation. Nor is the adaptive second edit a new general data-structure operation: given a structure that supplies the actual canonical leaf and the required comparable codes, insertion followed by its selected deletion is a constant-length update sequence. Our proof establishes these graph-specific interfaces, including physical-leaf tracking, common comparison across spines, and the space occupied by all temporary versions. The longest-chain annotation implements the parent chosen here; it is not a claim that every near-linear generator must use that particular selector. \paragraph{A second old backend reaches the same bound.} Nishimoto, I, Inenaga, Bannai and Takeda already provide deterministic LCE and substring-copy updates on one compressed text \cite[Theorems~1--2]{Nishimoto2016}. Append the completed subtree codes to a single catalogue in postorder. Each parent copies its already completed child blocks in their sorted order. The catalogue has logical length $O(s^2)$ but only $O(s)$ literal/copy phrases. Its compressed representation therefore gives $O(s\log^2(s+2)\log^*(s+2))$ host-preparation time and $O(s\log(s+2)\log^*(s+2))$ words. Only the root's length-$3s$ code is materialized; original child occurrences retain physical vertex identities. Proposition~\suppref{prop:e4-compressed-catalogue} supplies the construction and model details. Combined with the unchanged critical-ancestor variants, it reaches the same full graph bounds. Thus neither availability of an old deterministic text structure nor the particular ABR substitution is a novelty distinction. The remaining candidate is the complete graph application and its proved query interfaces. Nor is amortization alone a reason to reject an older structure: a deterministic aggregate bound for every fresh batch of $O_k(n)$ operations, with construction and disposal charged, bounds one whole graph query in the worst case. Expected time and probabilistic comparison errors are separate issues. The comparison does not establish historical priority for the graph theorem. \subsection{Completing the delay and space accounting} A partial functional background splits into a sink-rooted forest and a cyclic functional part. The degree-capped forest iterator uses the intrinsic tree order given by size, root arity and child word. Its key completion test is elementary. In an alphabet admitting a path at every positive size, $p\ge1$ trees, each at least an admissible tree of size $s$, can have total size $R$ exactly when $ps\le R$; for $p=0$, feasibility is exactly $R=0$. Use $p-1$ copies of the lower tree and one larger path when necessary. Together with constant-time jumps between nonempty size--arity classes, this gives an explicit, copyable linear-full-delay iterator. At a cycle root, one incoming cycle arc consumes one unit of its indegree cap. Fixed-content necklace generation supplies the cyclic order, and copyable component catalogues supply their multisets. Caps zero and one and the loopless forbidden cyclic size one are handled directly. Appendix~\suppref{sec:e4-capped-background} gives these interfaces in full; an amortized tree-generation bound alone would not justify them. Within a fibre, background generation and writing the full graph cost $O(n)$ per output. Between fibres, exhaust one background iterator, perform the constant number of positive-core queries from the alternating traversal, and initialize the next iterator. Every fibre is nonempty, so no unreported sequence of cores intervenes. The same accounting covers the first and last outputs and finite-root changes. Finish a whole fibre before resuming the core traversal; ancestor fibres need no saved state. The background adds only $O(n)$ words to the core-query workspace. This proves Theorem~\ref{thm:response-nearlinear}; the precise composition is in Appendix~\suppref{sec:e4-functional-fibres}. Canonical construction and reverse search are established methods~\cite{McKay1998,avis96}. The content here is the stated combination of exact-size outputs, complete inverse trials, actual canonical parent selection and compatible delay and space bounds; historical priority for that full combination is not asserted. The finite checks exercise its component identities and small graph decompositions, not a benchmarked optimized implementation of the whole generator. There is also a linear-space tradeoff: if every simple directed path has at most $h$ edges, Theorem~\suppref{thm:e4-path-bounded} gives $O_k(n(h+1)\log(n+2))$ full delay and $O_k(n(h+1))$ working words, with both degree caps and optional loop exclusion. This separate result is useful for fixed $h$; it is not needed by the height-independent fibre argument.