% \subsection{Removing the exact-size leaf penalty by isolated-sink padding} \label{sec:de4-quadratic} The cubic delay in the vertex-reduction construction has two factors: a child query costs quadratic time, and a traversal restricted to vertices of the search tree at one target size can take a linear number of such queries between outputs. For the unrestricted graph class the second factor can be removed. This does not follow by accelerating only descent to a preferred leaf: failed sibling queries on ascent would still be expensive. Instead, change which search objects are output. An \emph{isolated sink} is a vertex of indegree and outdegree zero. All degree caps in this proof dossier are supplied in normalized form as integers in $\{0,\ldots,n\}$, or as an explicit unbounded flag. Thus they fit the stated word model. If an interface instead accepts arbitrarily long binary encodings of caps, their input-reading cost must be added before this normalization. Let $\mathcal I_k$ be the isomorphism classes of simple directed graphs with loops allowed, excess $e_+=k$, and no isolated sinks. The empty graph belongs to $\mathcal I_0$. For a fixed target $n$, put \[ \Phi_n(H)=H\mathbin{\dot\cup}(n-|V(H)|)K_1^0, \qquad H\in\mathcal I_k,\quad |V(H)|\le n, \] where $K_1^0$ is an isolated sink. Removing all isolated sinks is an intrinsic operation, so $\Phi_n$ is a bijection onto the $n$-vertex exact-excess-$k$ isomorphism classes. In particular, every search object of size at most $n$ is now an output, rather than merely an internal node on a path to one. Here and below, the preliminary parent refers to the sparse-graph reductions of Appendix~\ref{sec:vertex-reduction}, not to DPT's functional-digraph parent. Let $P$ be that canonical reduction parent: isolated sink deletion has first priority, and longest ordinary source-leaf chain deletion has the next priority. All choices are made after canonical normalization. For a nonterminal $H\in\mathcal I_k$, define \[ Q(H)=\operatorname{StripIsolatedSinks}(P(H)). \] The following observation makes this definition algorithmically useful. \begin{lemma}[The only two-step projection] \label{lem:de4-two-step} For isolate-free $H$, either $P(H)$ is isolate-free, or $P(H)$ has exactly one isolated sink and $H$ contains a separate two-vertex component $x\to y$ with $y$ a sink. In the latter case the selected reduction deletes $x$, and the next original parent deletes the isolated $y$. Thus $Q$ is either one or two original parent steps, and is computable in $O_k(|V(H)|)$ time and working words. \end{lemma} \begin{proof} An isolated-loop deletion changes no other component. Suppression preserves each surviving indegree and outdegree, including the case that a two-cycle becomes a loop. Deleting an ordinary source leaf can isolate its target only if the target was a sink with precisely that incoming arc. These two vertices then formed an entire component. Only this target can become isolated. The remaining sink deletion could isolate its predecessor only if that predecessor had indegree zero and outdegree one. It would then itself be an ordinary source leaf, whose higher-priority deletion prevents this sink rule from being selected. The sink deletion cannot otherwise create an isolate. These cases exhaust the reduction list. When an isolate is created, its deletion is the next prioritized operation; the result is exactly the stripped graph up to isomorphism. Normalization, one reduction, and stripping all cost $O_k(|V(H)|)$. \end{proof} Every $Q$-edge decreases the vertex count by one or two. The terminal classes are exactly the old terminal classes: an old nonterminal still has a $Q$-parent, and an old terminal has none. In particular the finite root bound remains $4k$ for $k>0$, with the empty root at $k=0$. \begin{lemma}[Projected child selection] \label{lem:de4-child} A first, last, next, or previous child query for $Q$, restricted to children of size at most $n$, takes $O_k((m+1)^2)$ time and $O_k(m+1)$ working words on an $m$-vertex parent. \end{lemma} \begin{proof} Try each original one-vertex inverse extension, retaining only isolate-free candidates within the size bound. There are $O(m+k+1)$ such trials. In addition, try the one candidate $H\mathbin{\dot\cup}(x\to y)$ if $m+2\le n$. Test every candidate $G$ by the complete-code equality $Q(G)\cong H$. If a $Q$-child is connected to its parent by one old reduction, the old complete inverse list contains a labelled realization. If it is connected by two, Lemma~\ref{lem:de4-two-step} says that it is precisely the additional disjoint-path candidate. It must still pass the parent test: an older, longer pendant chain may cause a different source leaf to be deleted. There are no other projected inverse cases. Each construction, canonization, projected-parent computation, and code comparison costs $O_k(m+1)$. Retain only the least accepted code strictly above a supplied bound for a next query; other directions use the corresponding extremum. Equal codes cannot cause duplicates. A constant number of candidates and complete codes suffice, giving the asserted bounds without a child catalogue. \end{proof} The following lemma records Uno's established alternating-output method~\cite[Section~2, Theorem~1]{Uno2003}, with explicit parent/child query counts and accounting for the initial and final gaps. It applies here only after every visited state has been made an output. \begin{lemma}[Alternating traversal of an all-output forest] \label{lem:e4-alternating-all-output} Consider a finite rooted forest in which every visited node is an output. Suppose that a parent, a first child, and a next child after a supplied child key can be queried without retaining an ancestor stack. A depth-first traversal which outputs even-depth nodes on entry and odd-depth nodes on exit uses at most two parent queries and two child queries between successive outputs. The same bound applies before the first output and after the last output within a tree. Acquiring a new root is charged separately. Depth is the depth in this forest, including when its edges represent several steps of another forest. \end{lemma} \begin{proof} Immediately after an even-depth entry output, query its first child. If an odd-depth child exists, either its first child is an even-depth entry output, or the odd child is a leaf and is output on exit. If the initial query fails, ascend once to the odd-depth parent and ask for the next child: either the returned even-depth node is output on entry, or the odd parent is output on exit. A root with no child instead finishes its tree. These cases use at most two child queries and one parent query. Immediately after an odd-depth exit output, ascend to its even-depth parent and ask for the next child. If one exists, it is odd, and one first-child query reaches either an even-depth entry output or that odd node's exit output. If none exists, ascend once more and ask for the next child there: either an even-depth child is output on entry, or the odd-depth parent is output on exit. Reaching the root ends the tree earlier. These cases use at most two queries of either kind. A new root has depth zero and is output immediately on entry. Hence initialization and exhaustion obey the stated bounds, apart from the separately charged root enumeration and output materialization. Keep the departing child's canonical key while querying its parent, and toggle one parity bit on each forest edge. This requires only a constant number of node states and keys; changes to temporary vertex labels do not affect the next-child query. \end{proof} For the projected E4 forests, all retained roots supply an output at the target size. A transition may inspect many rejected root candidates, but the entire finite root scan costs $2^{O(k\log(k+1))}$ times a polynomial in $k+1$; charge this upper bound to any such transition, to initialization, and to exhaustion, including an empty output class. Combining the lemma with the quadratic projected child query and linear parent and materialization bounds gives the full delay claim. The lemma would not apply to a traversal outputting only target-level leaves while withholding its internal nodes. \begin{theorem}[Quadratic full delay for exact size and excess] \label{thm:de4-quadratic} For fixed $k\ge0$, all isomorphism classes of $n$-vertex simple directed graphs with loops and sinks allowed and $e_+=k$ can be listed with $O_k(n^2)$ full delay and $O_k(n)$ working words for $n\ge1$. A safe parameter factor remains $2^{O(k\log(k+1))}$. The statement concerns unrestricted, possibly disconnected graphs. \end{theorem} \begin{proof} Use the original streaming finite root search, discarding roots larger than $n$. On each root, traverse the $Q$-tree truncated at size $n$, outputting a node on entry at even depth and on exit at odd depth. Every visited node is output. Lemma~\ref{lem:e4-alternating-all-output} therefore gives a constant number of parent/child queries between successive outputs, including first entry and final exit of a tree. Each such query has the bounds of Lemmas~\ref{lem:de4-two-step} and~\ref{lem:de4-child}. Maintain one depth-parity bit and toggle it on every actual $Q$-edge. The formula $|V(H)|-|V(\text{root})|\bmod2$ is \emph{not} correct: the edge from the two-vertex directed path to the empty graph decreases size by two but changes projected depth by one. Keeping the parity bit avoids recomputing the projected depth. After ascent, the departed child's complete code resumes sibling search on the canonical parent; no ancestor stack or permanent label correspondence is needed. At each core output form $\Phi_n(H)$, or its canonical representative, in $O_k(n)$ time and words. The padding bijection proves both completeness and uniqueness. Each retained root supplies at least its own padded output, even if it has no child below the size cap. Consequently no prolongability hypothesis is needed in this traversal. The entire finite root scan costs $2^{O(k\log(k+1))}$, which also bounds any gap between root blocks. Initialization and exhaustion have the same bound as ordinary gaps. Constantly many codes, graphs, and temporary buffers of size at most $n$, plus parameter-only root-search state, give $O_k(n)$ words. The empty target is handled separately. \end{proof} \begin{corollary}[Uniform degree upper bounds] \label{cor:de4-degree-caps} The same quadratic-delay and linear-word bounds hold if, in addition, every vertex must have indegree at most $\Delta$ and outdegree at most $D$, for specified nonnegative integer bounds $\Delta,D$. \end{corollary} \begin{proof} All original reductions weakly decrease both degrees at every surviving vertex, except suppression, which preserves them exactly. Thus the restricted class is closed under $P$ and $Q$. Removing or adding isolated sinks preserves both bounds, so the same padding bijection holds. Filter the finite roots and the $O(m)$ local extension trials by these two bounds in $O(m)$ time per trial. Every visited restricted core itself gives an output, so no extension-existence argument is needed, including for zero degree bounds. The query and full-delay analysis is unchanged. \end{proof} \paragraph{What is inherited and what changes.} Canonical normalization, transport of inverse extensions through an isomorphism, extremal-code duplicate suppression, and alternating reverse search are standard ingredients. The new work in this derivation is the isolated-sink padding bijection together with the complete two-step projection lemma; these replace the original exact-size leaf traversal. This is a mathematical improvement of the examined construction, not a claim of historical priority over all graph generators. It does not give the same bound for connected graphs: padding with isolated vertices destroys their connectedness. \subsection{Loopless graphs and cap-preserving connected prolongation} \label{sec:de4-loopless} The original reductions preserve both indegree and outdegree upper bounds. They do not preserve looplessness: suppressing a directed two-cycle creates a loop. Simply forbidding this suppression is insufficient for unrestricted generation, because an arbitrary disjoint union of directed two-cycles would become an unbounded family of zero-excess roots. We instead forbid suppressions with equal surviving endpoints, and add deletion of an isolated directed two-cycle as a two-vertex reduction. In connected generation a whole two-cycle is terminal, rather than being deleted. The other rules are unchanged. In the ordinary parent, the new component rule occupies the position of isolated-loop deletion: after isolated-sink and longest-source-leaf deletion, and before the remaining sink and suppression rules. Among several isolated two-cycles, choose the least unordered vertex pair in the canonical representative. The longest-ordinary-chain parent introduced below explicitly promotes suppression ahead of the remaining component rules, including this one. Deleting an isolated two-cycle creates no isolated sink elsewhere, so the two-step projection argument is unchanged. \begin{lemma}[A sharp loopless kernel bound] \label{lem:de4-loopless-kernel} An unrestricted loopless graph irreducible under these modified rules has at most $5k$ vertices, where $k=e_+(G)$. For connected generation the additional zero-excess terminal graphs are the singleton sink and the directed two-cycle. For $k>0$ the same $5k$ bound applies. For every $k\ge1$ the unrestricted bound is attained. \end{lemma} \begin{proof} As before, let $B$ be the branch vertices, $b=|B|$, let $S$ be the sinks, $s=|S|$, let $Z$ be the indegree-zero vertices, $z=|Z|$, and put \[ H=\{v:d^-(v)\ge2\},\qquad I=\sum_{v\in H}(d^-(v)-1). \] Irreducibility gives $Z\subseteq B$, and degree summation gives $I-z=k-s$. Also $b\le k$ and $|H|\le I$. Every remaining vertex lies in $D=V\setminus(B\cup H\cup S)$ and has indegree and outdegree one. Write its incident path as $p\to v\to w$. Its suppression is blocked either by $p\ne w$ and an existing $p\to w$ (type $D_1$), or by $p=w$ (type $D_2$). There is no other reason for this ordinary vertex to remain. Type $D_1$ forces $p\in B$ and $w\in H$. For $w\in H$ let $t_w$ count type-$D_1$ vertices whose target is $w$, and let $c_w$ count type-$D_2$ vertices mutually adjacent to $w$. If $t_w>0$, $w$ receives the $t_w+c_w$ distinct ordinary incoming arcs and at least one further incoming arc from a branch predecessor. Thus $t_w+c_w\le d^-(w)-1$. If $t_w=0$ and $c_w=Stealth,every node/.style={circle,draw,inner sep=2pt}] \node (p) at (0,0) {$p$}; \node (u) at (1,1) {$u$}; \node (a) at (2,0) {$a$}; \node (b) at (3,0) {$b$}; \node (v) at (4,0) {$v$}; \draw[->] (p)--(u); \draw[->] (p)--(a); \draw[->] (u)--(a); \draw[->] (a)--(b); \draw[->] (b) to[bend left=23] (v); \draw[->] (v) to[bend left=23] (b); \end{tikzpicture}\\[1mm] Transitive collision and a two-cycle \end{minipage}\hfill \begin{minipage}[t]{.48\textwidth}\centering \begin{tikzpicture}[scale=.8,>=Stealth,every node/.style={circle,draw,inner sep=2pt}] \node (p) at (0,0) {$p$}; \node (a) at (1.3,1) {$a$}; \node (u) at (2.8,1) {$u$}; \node (b) at (1.3,-1) {$b$}; \node (v) at (2.8,-1) {$v$}; \draw[->] (p)--(a); \draw[->] (p)--(b); \draw[->] (a) to[bend left=23] (u); \draw[->] (u) to[bend left=23] (a); \draw[->] (b) to[bend left=23] (v); \draw[->] (v) to[bend left=23] (b); \end{tikzpicture}\\[1mm] Two two-cycles fed by one source \end{minipage} \caption{The two five-vertex terminal gadgets at $k=1$. Both have six arcs. The degree pairs $(d^-,d^+)$ are $(0,2)$ at $p$, $(2,1)$ at $a,b$, and $(1,1)$ at $u,v$. Suppression at an ordinary vertex is blocked by a duplicate arc or by the prohibition on creating a loop.} \label{fig:five-k-gadgets} \end{figure} \begin{proposition}[Equality cases for the loopless kernel] \label{prop:de4-loopless-equality} For $k\ge1$, a loopless irreducible graph with $5k$ vertices and excess $k$ is a disjoint union of $k$ five-vertex components of the following two types: \begin{enumerate} \item the transitive triangle feeding a two-cycle displayed in the sharpness proof; \item a branch source pointing to two separate two-cycles: $p\to a$, $p\to b$, $a\to u$, $u\to a$, $b\to v$, $v\to b$. \end{enumerate} Consequently there are exactly $k+1$ unrestricted equality classes. A connected equality case exists only for $k=1$, when there are two. \end{proposition} \begin{proof} Equality in the kernel inequalities forces $b=z=k$, $s=0$, $|H|=I=2k$, and $|D|=2k$. Thus every branch vertex is a source of outdegree two, every vertex of $H$ has indegree two and outdegree one, and all other vertices have degree pair $(1,1)$. There is no type-$D_2$ target outside $H$, since such a target would be a branch vertex of positive indegree. At a vertex $w\in H$, outdegree one implies $c_w\le1$. The inequality $t_w+c_w\le1$ is an equality at every one of the $2k$ vertices of $H$, because their sum counts all $2k$ ordinary vertices. Hence each $H$-vertex has exactly one of two forms. Either $t_w=1,c_w=0$, and its two incoming arcs are from one transitive-collision vertex and its branch predecessor; or $t_w=0,c_w=1$, and it is paired with an ordinary vertex in a two-cycle, with exactly one further incoming arc available. A branch vertex having an outgoing neighbour of type $D_1$ must use its other outgoing arc for that neighbour's target in $H$. Those two arcs fill the target's indegree, so different branch vertices cannot share it. The target's one outgoing arc must go to a two-cycle vertex of $H$: branch vertices have indegree zero, ordinary vertices already have their unique predecessors, and all transitive-collision targets have both incoming arcs filled. This gives exactly the first five-vertex component. A branch vertex with no outgoing neighbour of type $D_1$ must point to two distinct two-cycle vertices of $H$. The same filled-indegree argument excludes every other target type. These arcs fill the remaining incoming slot of each two-cycle vertex, giving exactly the second five-vertex component. All vertices in either component have their incident arcs accounted for, so no additional connections between the components are possible. There is one branch vertex per component. Choosing how many of the $k$ components have the first type gives the $k+1$ classes; the two component types are distinguished intrinsically by the transitive triangle. \end{proof} The inverse list gains only the operation of adding a separate directed two-cycle. It still contains $O(m+k+1)$ trials. The two-step isolate projection remains valid: the extra reduction removes a whole component and cannot create an isolated sink. Filtering the local trials by looplessness and degree caps preserves the query bounds. \begin{corollary}[Loopless exact-size listing] \label{cor:de4-loopless-quadratic} Theorem~\ref{thm:de4-quadratic} and Corollary~\ref{cor:de4-degree-caps} also hold for loopless simple directed graphs. The finite root search uses the bound $5k$ and still has parameter cost $2^{O(k\log(k+1))}$. \end{corollary} \begin{proof} Use the modified reductions, their projected isolate-free parent, and the additional isolated-two-cycle inverse. A projected parent still lowers size by one or two. Every truncated search node is an output after isolated-sink padding. Thus the alternating traversal and the maintained projected-depth parity apply without any extension existence assumption. At most $6k$ arcs occur in a $5k$-vertex root, so enumerating its possible labelled sparse arc sets has the stated parameter bound. All reductions preserve the degree caps. \end{proof} \subsubsection{A different priority repairs connected extension under caps} For connected graphs isolated-sink padding is unavailable. We retain the exact-size traversal, but can make its prolongability lemma work simultaneously with upper bounds on both directed degrees and with optional looplessness. An \emph{ordinary chain} is a maximal path of vertices having indegree and outdegree one, with its nonordinary endpoints omitted. The two endpoints may be the same exceptional vertex. If all vertices of a component are ordinary, regard the whole directed cycle as one cyclic chain. Distinct chains have disjoint ordinary vertices and all chains can be found in linear time by starting after nonordinary vertices, then scanning the remaining pure cycles. Modify the parent priority as follows. Keep isolated-sink deletion first, and the longest ordinary source-leaf chain next. After these, choose a suppressible ordinary vertex lying on a longest ordinary chain among chains containing a permitted suppression. Break ties by the labels of the canonical representative. Only then use the remaining isolated-component and sink rules. This changes choices, not applicability, so the preceding kernel bounds remain valid. \begin{lemma}[Connected cap-preserving prolongation] \label{lem:de4-capped-prolongation} Assume $\Delta,D\ge1$. Every nonempty weakly connected graph in the modified parent forest, with indegree at most $\Delta$ and outdegree at most $D$, has a connected child satisfying both caps and the same loop convention. Its size increases by exactly one and its excess is unchanged. \end{lemma} \begin{proof} If an ordinary source leaf exists, prepend a new leaf to a longest pendant chain, as in the original prolongability proof. The old source's indegree changes from zero to one; every other old degree is unchanged. The resulting chain is the unique longest source-leaf chain, and the prioritized parent deletes the new leaf. Suppose no ordinary source leaf exists. If there is an arc, subdivide an arc of a longest ordinary chain, allowing even a chain whose single vertex currently has a blocked suppression. If there is no ordinary chain, subdivide any arc. Degrees of old vertices are unchanged and the new vertex has indegree and outdegree one. No ordinary source leaf is created. A former longest chain of length $L$ is now the unique longest chain of length $L+1$, with all other chain lengths unchanged. If no chain existed, the new chain of length one is unique. Every vertex on a noncyclic chain of length at least two can be suppressed: an internal ordinary vertex cannot be the target of an additional shortcut arc, and the surviving endpoints of such a suppression are distinct. The analogous statement holds for a pure cycle of length at least three; a two-cycle is also suppressible when loops are allowed. A newly created one-vertex chain obtained by subdividing an existing arc is suppressible because that original arc has been removed. In the loopless case its endpoints were distinct. Thus the new longest chain contains permitted suppressions. Contracting any one of its ordinary vertices simply shortens the same unmarked path or cycle by one and yields a graph isomorphic to the original. Therefore the parent's tie-breaking within this chain does not matter: its chosen suppression returns the original class. This also handles subdividing a singleton loop when loops are allowed, or a terminal directed two-cycle when loops are forbidden. The only connected graph with no arc is the singleton sink. Adding an ordinary source leaf gives its child directly. Every construction preserves weak connectedness and exact excess and satisfies both positive degree caps. \end{proof} \begin{corollary}[Connected exact excess with degree caps and loop convention] \label{cor:de4-connected-caps} For fixed $k$, exact-$n$, exact-$e_+=k$, weakly connected simple directed graphs can be generated with $O_k(n^3)$ full delay and $O_k(n)$ words under simultaneous uniform upper bounds on indegree and outdegree, with loops either allowed or forbidden. The parameter factor may again be $2^{O(k\log(k+1))}$. \end{corollary} \begin{proof} The modified parent preserves all requirements. Its finite roots obey the $4k$ or $5k$ bound, with the stated zero-excess terminals. For positive caps, Lemma~\ref{lem:de4-capped-prolongation} guarantees that every smaller visited node reaches the target size. The complete filtered inverse list has $O(n)$ candidates, a child query costs $O_k(n^2)$, and the original stackless exact-size traversal has at most $O(n)$ queries per gap. If either cap is zero, the only nonempty connected admissible graph is the singleton sink; handle this directly, including empty target classes. This covers the otherwise invalid use of a prolongation lemma at a zero cap. \end{proof} \paragraph{Scope of the improvements.} The quadratic improvement so far is proved for possibly disconnected graphs, including degree caps and the loopless case. The intermediate connected construction with simultaneous degree caps retains cubic delay. The next section improves the connected case without an indegree cap; Theorem~\ref{thm:de4-both-caps-quadratic} subsequently extends that improvement to both caps. Exact degree sequences, an exact number of components, and minimum degree bounds are not covered: the padding bijection and reduction closure need not preserve them. \subsection{Quadratic connected delay by contracting preferred extension rays} \label{sec:de4-connected-rays} There is no connected analogue of adding isolated sinks. There is, however, a canonical extension that is always undone by the original parent. Contracting chains of this preferred extension again makes every search node an output. The central issue is to find children of the contracted tree without scanning a quadratic number of raw extensions. A classification of children beyond the first two extension steps supplies the required bound. Use either the original connected parent when loops are allowed, or the connected loopless parent above. Both prioritize a source leaf on a longest pendant chain and have a linear parameterized-time canonical parent operation. Normalize $H$ before defining $E(H)$. If $H$ has an ordinary source leaf, prepend one new leaf to the smallest-labelled leaf on a longest pendant chain. Otherwise add a new source pointing to vertex $0$ of the canonical representative. Normalize the resulting graph. The new source chain is uniquely longest in the first case and the only source chain in the second. Therefore \[ P(E(H))=H \] on isomorphism classes. This identity is independent of temporary vertex labels. The extension preserves excess, connectedness, looplessness when required, and every positive outdegree upper bound. It need not preserve an indegree upper bound. Call a graph $G$ a \emph{base} if $P(G)$ is undefined or $G\ne E(P(G))$. The preferred edges $H\to E(H)$ partition the parent forest into disjoint infinite rays. They cannot merge, because the displayed identity makes $E$ injective on isomorphism classes. Repeated preferred-parent stripping reaches a unique base, denoted $\operatorname{Base}(G)$. For a fixed target $n$, \[ B\longmapsto E^{\,n-|V(B)|}(B),\qquad |V(B)|\le n, \] is consequently a bijection from the admissible bases to the connected $n$-vertex classes. Define the parent of a nonterminal base by $Q(G)=\operatorname{Base}(P(G))$. It decreases size and has exactly the original terminal roots. \begin{lemma}[Batched preferred-parent stripping] \label{lem:de4-ray-base} The maps $\operatorname{Base}(G)$ and $Q(G)$ can be computed in $O_k(|V(G)|)$ time and words. \end{lemma} \begin{proof} List all pendant source chains in linear total time. Every $E$-image has a unique longest source chain. Thus a graph with no such chain, or with a tie for the maximum length, is already a base. Otherwise let $L$ be its unique maximum length and $S$ the second largest length, with $S=0$ if there is only one source chain. Whenever $L\ge S+2$, the parent deletes the tip of this unique chain. Its remaining length $L-1>S$ is still uniquely largest, so $E$ restores the original graph. All these preferred parent edges can be contracted at once: delete a prefix of the chain until its length is $\max(S+1,1)$, then canonize once. For the remaining graph $G'$, perform one test of $G'=E(P(G'))$. If it fails, $G'$ is a base. If it succeeds, $P(G')$ is already a base. Indeed, if $S\ge1$ the deletion shortens a chain of length $S+1\ge2$ to $S$, producing a tie for longest. If $S=0$, the graph has just one source chain, of length one. Its deletion creates no ordinary source leaf: its successor was not a $(1,1)$ vertex, and if that successor has outdegree one then its old indegree was at least two, so its new indegree is still positive. All other vertices keep their indegrees. The parent is therefore source-free. The batched deletion, degree scans, and constant number of canonical tests all have linear parameterized cost. Composing this map with one ordinary parent computes $Q$ with the same bounds. \end{proof} \begin{lemma}[The only late nonpreferred child] \label{lem:de4-late-ray-child} Let $H$ have a unique longest pendant source chain \[ v_0\to v_1\to\cdots\to v_{L-1}\to w, \] where $L\ge S+2$ and every other source chain has length at most $S$. Every original-parent child of $H$ is isomorphic either to $E(H)$ or to the single fork candidate $H+(x\to v_1)$. The latter candidate still has to pass the canonical parent test. \end{lemma} \begin{proof} Here $L\ge2$. The complete connected inverse list has three types. First add a new ordinary source $x\to u$. If $u=v_0$, this is the preferred extension. If $u=v_j$ with $1\le j1$, any selected longest source chain has length at least two. Its tip deletion cannot change its far endpoint; all source chains in the parent have length less than $L$. That parent is not isomorphic to $H$. For $j=1$ we have precisely the listed fork. This is the important exception: deleting a length-one fork arm can join the surviving arm onto the long suffix. If $u$ is outside the displayed chain, its length $L$ is unchanged. The new source chain has length at most $S+1$ if it extends another source chain, and otherwise has length one. An extra incoming arc to a non-source ordinary vertex cuts its old chain rather than extending it. Thus the old length-$L$ chain remains uniquely longest. Its mandatory tip deletion shortens it to $L-1$ without changing its endpoint. Every other source chain has length at most $S+1\le L-1$, so the parent again cannot be $H$. This includes attaching the new source to $w$. Second, extend an existing sink $u$ by $u\to x$, where $x$ is a new sink. If $u$ ends the displayed chain and has indegree one, that chain together with $u$ is the whole connected graph, a directed path. Extending either end gives the class $E(H)$. Extending any other indegree-one sink increases another source-chain length by at most one, or affects no source chain. An indegree-at-least-two sink remains nonordinary. In all other cases the old chain is still uniquely longest and its deletion leaves maximum source-chain length less than $L$. Third, subdivide an existing arc. All old indegrees and outdegrees are unchanged. If the arc lies on the displayed source chain, including its final arc into $w$, this inserts one indistinguishable ordinary vertex and gives the class $E(H)$. Otherwise it increases another source-chain length by at most one, or affects none. The unique maximum is again selected and shortened, excluding $H$ as parent. These arguments use the maximum source-chain length as an isomorphism invariant, so they do not assume that normalization keeps any labels fixed. The three cases exhaust the inverse list. \end{proof} For example, a loop with a long incoming chain has no second source chain. At every late extension level the fork at the second chain vertex is a possible nonpreferred child. Thus one cannot simply skip all late levels; the lemma reduces each such level to one candidate, not to zero candidates. \begin{lemma}[Acceptance of the late fork] \label{lem:de4-late-fork-acceptance} Under the hypotheses of Lemma~\ref{lem:de4-late-ray-child}, let $S$ now denote the \emph{actual} maximum length of the other source chains, with $S=0$ if there are none, and put $G=H+(x\to v_1)$. If $S\ge2$, no longest-source-leaf choice returns $H$. If $S=0$, every such choice returns $H$. If $S=1$, deleting $x$ or $v_0$ returns $H$, while deleting another tied source may or may not do so. Thus some longest-source choice returns $H$ exactly when $S\le1$; for a fixed canonical parent the $S=1$ case still requires its parent test. With positive degree caps, this classification applies only to admissible candidates. Provided $H$ satisfies the caps, the fork is degree-admissible exactly when the indegree cap satisfies $\Delta\ge2$. It preserves every positive outdegree cap and either loop convention. \end{lemma} \begin{proof} The new arc raises the indegree of $v_1$ from one to two. Hence the chains starting at $v_0$ and $x$ both have length one. All other source chains are unchanged: they cannot pass through $v_1$, whose original unique predecessor lies on the displayed chain. When $S\ge2$, deleting a selected length-$S$ chain's tip shortens it to $S-1$ without changing its far endpoint. Every surviving source chain therefore has length at most $S