\subsection{A sparse extension beyond uniform outdegree one} \label{sec:bounded-excess} The original paper suggests using functional decompositions for more general digraphs. The following construction gives a restricted, explicit answer. It uses standard canonical-deletion and reverse-search ideas, and no priority claim is made for those techniques or for this parameterized class. General unlabelled-graph generation already has a substantial literature, including Goldberg's work \cite{Goldberg1992}; a claim that general generation is impossible merely because graph isomorphism is involved would be unjustified. \paragraph{What the parameter measures.} This is a bounded number of extra outgoing arcs in the \emph{whole} graph, not a bound on each vertex separately. If $m=|E(G)|$ and $s$ is the number of sinks, then \[ e_+(G)=m-n+s. \] A directed path ending at a sink has $e_+=0$ although $m-n=-1$. A disjoint union of directed cycles also has $e_+=0$, now with $m-n=0$. In contrast, a graph with outdegree exactly two at every vertex has $e_+=n$. These examples explain both why sinks belong naturally to the base class and why fixed $k$ does not cover all outdegree-two graphs. \paragraph{Proof roadmap and antecedents.} First choose one outgoing arc at each nonsink and encode the remaining at most $k$ arcs by endpoint marks. This reduces canonization to coloured partial functions. Next choose a canonical arc deletion and recover children by local insertion trials. Finally traverse the resulting parent forest without storing previously visited graphs. Canonical construction paths are classical~\cite{McKay1998}, and the tree-normalization step is an application of bottom-up rooted-tree isomorphism~\cite{AHU1974}. The work below is the explicit resource accounting for this parameter and representation. Fixed-excess core methods have classical counting precedents, both for undirected graphs and for strongly connected digraphs~\cite{Wright1977Graphs,WrightDirected1977,DPRRW2024}. Their usual excess $m-n$ must not be silently substituted for $e_+$. Directed phylogenetic generators give a further close antecedent: after reversing all arcs, their reticulation excess becomes branching excess~\cite{KS2014,GBP2009}. Those results concern different graph classes and tasks, but already supply small directed cores, path expansion, and parameter-dependent finite catalogues. The more detailed comparison in Section~\ref{sec:forward-core-indexing} separates that established architecture from the exact class and resource bounds here. In particular, neither the use of a small exceptional core nor linear rooted-tree canonization is claimed as a new general method. All graphs in this section are simple directed graphs, with loops permitted and with sinks permitted. Define the \emph{branching excess} \[ e_+(G)=\sum_{v\in V(G)}\max\{d^+(v)-1,0\}. \] The notation $O_k(\cdot)$ allows a multiplicative factor depending on $k$. The graph representation is a sparse list of outgoing neighbours, containing at most $n+k$ arcs for the capped class considered below. The word model uses $\Theta(\log(n+2))$ bits per word. Constants depending on $k$ include the manipulation of $O(k)$ endpoint-marker bits: a marker need not fit in one word when $k$ is treated as a separate parameter. Representing it by a word tuple adds a polynomial factor in $k$, already permitted in the stated parameter bound. Thus no unbounded-precision integer operation is being charged as one ordinary word operation. \begin{theorem}[Bounded branching excess] \label{thm:bounded-excess} For each fixed $k$, all isomorphism classes of $n$-vertex digraphs with $e_+(G)\le k$ can be generated with $O_k(n^3)$ worst-case delay and $O_k(n)$ working words, including initialization and termination. One may take a safe hidden parameter factor to be a polynomial in $k$ times $2^k k!$. \end{theorem} \subsubsection{Coloured functional spines} Choose one outgoing arc at every nonsink of $G$. These chosen arcs form a partial functional digraph $F$; the remaining $j=e_+(G)$ arcs are called extra arcs for this choice. There are at most \[ \prod_{v:d^+(v)>0}d^+(v)\le \prod_{v:d^+(v)>0}2^{d^+(v)-1}=2^j \] choices of $F$. For each ordering of the $j$ extra arcs, mark their source and target occurrences with $2j$ distinct colours. A vertex may receive several colours, including both endpoint colours of a loop. The coloured spine and its ordered endpoint markers recover $G$. We first make explicit the integer-string sorting primitive used by the canonizer. Its length-sensitive accounting is essential on long, narrow trees. \begin{lemma}[Variable-length integer strings] \label{lem:linear-integer-string-sort} Let $m$ strings over $\{0,\ldots,A-1\}$ have total length $L$. Their stable lexicographic order, and dense ranks for equal-string blocks, can be computed in $O(m+L+A)$ time and words. A proper prefix precedes the longer string. \end{lemma} \begin{proof} Let $P$ be the maximum string length. Bucket the string indices by length. Form all $L$ pairs $(p,a)$ recording character $a$ at position $p$. Stable counting sorting first by $a$ and then by $p$ orders these pairs by position and character in $O(L+A+P)$ time. Delete adjacent duplicate pairs to obtain, for each position $p$, the increasing list $\operatorname{Present}(p)$ of letters occurring there. The total length of these lists is at most $L$. Process positions from $P-1$ down to zero. Before processing $p$, the active list consists of all strings of length at least $p+2$, ordered by their suffix starting at $p+1$. Prepend the strings of length $p+1$: their suffix at $p+1$ is empty and precedes every nonempty suffix. Stably bucket this combined list by its character at $p$, and collect the buckets in $\operatorname{Present}(p)$ order. This establishes the same invariant for suffixes starting at $p$. Finally prepend the empty strings. The induction also proves stability. The global array of character buckets is initialized only once. At position $p$, only buckets in $\operatorname{Present}(p)$ are cleared and collected. The active visits total \[ \sum_{p=0}^{P-1}\#\{w:|w|>p\}=L, \] and the total number of present letters is at most $L$. Thus there is no full-alphabet scan at every position. Since $P\le L$ when $L>0$, all lists, counting arrays, and passes satisfy the stated bounds; the all-empty case takes $O(m+A)$. To assign equal-block ranks, compare adjacent sorted strings. Each comparison costs $O(1+\min\{|u|,|v|\})$, and each string is involved at most twice, so these comparisons cost another $O(m+L)$. \end{proof} \begin{lemma}[Sparse coloured canonization] \label{lem:sparse-coloured-canon} A partial functional digraph with $n$ vertices and $c$ distinct nonnegative integer vertex colours, each fitting in one machine word, has a complete canonical code computable in $O((c+1)n)$ time and $O(n+c)$ words. A graph with branching excess at most $k$, optionally with one distinguished ordered pair of vertices, has such a code in $O_k(n)$ time and $O_k(n)$ words. \end{lemma} \begin{proof} First consider a coloured partial functional digraph. Peel vertices of indegree zero. The unremoved vertices are precisely the cycle vertices. Build incoming child lists, omitting the arcs between cycle vertices. The resulting rooted forests have roots at the sinks and at the cycle vertices. Form breadth-first depth layers $V_0,V_1,\ldots$, with every root at depth zero. These are depth layers, not layers of equal subtree height. Their lists and the child references have total length $O(n)$. Compress the distinct colours into their increasing numeric order. Scanning a sorted palette of at most $c$ colours for each vertex, inserting a newly encountered colour when necessary, takes $O(cn)$ time and $O(n+c)$ words. Keep the original colours for the final code. Process the depth layers in reverse order. Suppose the vertices in $V_{d+1}$ have dense rooted-type ranks in $\{0,\ldots,t-1\}$, where $t\le|V_{d+1}|$. Bucket these vertices by rank and redistribute them to their parents, placing each parent's child list in rank order. For every $v\in V_d$, form the integer string \[ \bigl(\operatorname{colourrank}(v), \operatorname{rank}(u_1),\ldots, \operatorname{rank}(u_s)\bigr), \] where $u_1,\ldots,u_s$ are its children in that order. Apply Lemma~\ref{lem:linear-integer-string-sort} and give the equal-string blocks dense ranks. At the deepest layer there are no children and one simply uses the colour strings. The strings at depth $d$ have total length $|V_d|+|V_{d+1}|$, with the nonexistent next layer interpreted as empty. Their alphabet size is at most $\max\{c,t,1\}$. Consequently the total time over all layers is \[ O\left(\sum_d(|V_d|+|V_{d+1}|+c+1)\right) =O((c+1)n). \] In particular, the rank-alphabet costs sum to $O(n)$, because $t\le|V_{d+1}|$; an alphabet of size $n$ is never cleared at every depth. Only the current layer's keys and sorting workspace are needed. Together with all layer and child lists they occupy $O(n+c)$ words. By induction, two vertices at the same depth receive the same rank exactly when their coloured rooted trees are isomorphic. Isomorphic whole inputs give the same sets of keys at every depth. Therefore they give identical child orders, up to permutations of equal rooted types. Ranks at different depths need not be comparable. Nor must a rank be independent of the other trees present in the input: only invariance under an isomorphism of the entire input is required here. After the orders are fixed, emit each complete rooted tree once, using an opening token $1$, the original colour plus $3$, the child words in rank order, and a closing token $2$. These are logical tokens: if adding three to a one-word colour overflows that word, store the token in a constant number of words, or as a colour tag and the original value. Token comparisons still take constant time. An explicit event stack avoids recursion. These balanced words are prefix free and reconstruct the coloured rooted trees. Their total length is $3n$; full codes of all individual subtrees are not stored. For a cycle component, concatenate a token $0$ and the full rooted-tree code at each cycle vertex, following the directed cycle. Zeroes occur only at the boundaries between these trees. A linear least-rotation algorithm on the token word therefore selects precisely the least rotation at an allowed tree boundary: an internal start begins with a positive token and cannot win. Distinguish cycle components and sink-rooted components by a type tag. The total length of all component words is $O(n)$. Compress their colour tokens to the already computed palette ranks, preserving numeric order and retaining the other tokens, in $O(cn)$ time. Apply Lemma~\ref{lem:linear-integer-string-sort} to sort these component words, and return the original-colour words in this order. This takes $O((c+1)n)$ time and $O(n+c)$ words overall. The resulting tuple is the required complete invariant. It reconstructs the unordered rooted trees, their colours, the directed cycles and sinks, and the multiset of components. For a general graph, minimize $(j,\operatorname{Code}(F))$ over the at most $2^j j!$ coloured-spine choices and extra-arc orderings. An isomorphism transports each choice to a corresponding choice, so isomorphic graphs have equal minima. Conversely, equal coloured-spine codes reconstruct isomorphic graphs including all the extra arcs. Two additional endpoint colours handle a distinguished ordered pair. The endpoint marks may be represented by bit masks. If a mask occupies more than one machine word, its comparisons and copies cost a polynomial factor in $k$; palette compression, rotation comparisons, and complete-code comparisons all charge that factor. Each mask stays one logical colour token; its storage words are not interpreted as independent letters or zero delimiters. The one-word colour lemma therefore extends to these parameter-sized tuples within $O_k(n)$ time and words. There are at most $2k+2$ marked endpoint occurrences, so at most $2k+3$ distinct vertex colour values, including zero. Thus the coloured-spine computation costs $O_k(n)$ for each trial; comparisons of complete trial codes also cost $O_k(n)$, including any multiword endpoint masks. Stream the choices and retain only the current and best codes. This gives the claimed parameterized time and space bounds. \end{proof} \subsubsection{Canonical deletion without a child catalogue} When $e_+(G)>0$, call an arc eligible if its source has outdegree at least two. Choose an eligible arc $a$ minimizing the canonical code of the arc-marked graph $(G,a)$, and define the parent class by deleting $a$. A tie causes no ambiguity: equality of the marked codes gives an automorphism of $G$ carrying one tied arc to the other, hence isomorphic deletion results. Deletion preserves the set of sinks and decreases $e_+$ by exactly one. Thus these parents define a forest on isomorphism classes, of height at most $k$, rooted at the partial functional graphs. There are at most $2k$ eligible arcs, since $d\le2(d-1)$ for $d\ge2$. Lemma~\ref{lem:sparse-coloured-canon} therefore computes the parent in $O_k(n)$ time. For a representative $H$, scan every absent arc whose source is a nonsink. There are at most $n^2$ candidates. Accept $G=H+a$ exactly when $e_+(G)\le k$ and the canonical code of its parent equals the code of $H$. These accepted candidates cover every abstract child: an isomorphism from its deleted parent to $H$ transports its missing arc to one of the scanned candidates. Order children by their complete canonical codes. To obtain the first child, retain the smallest accepted code; to obtain the next child after code $c$, retain the smallest accepted code strictly greater than $c$. This removes duplicate labelled realizations without storing a set of children. Each candidate takes $O_k(n)$ time and there are at most $n^2$ candidates, giving $O_k(n^3)$ time for every successful or failed child query. Sparse adjacency membership checks and the retained candidate graphs also fit this conservative bound and linear workspace. \subsubsection{Traversal and the root catalogue} Partial functional graphs are multisets of two kinds of component: sink-rooted trees and connected functional digraphs. The linear forest iterator supplies rooted trees of a fixed size by going through their feasible heights, each of which is a nonempty block; the connected functional iterator supplies the other kind. A tagged concatenation of these catalogues has linear delay and copyable linear state. Integer size partitions, component multisets and Cartesian products then give an $O(n)$-delay, $O(n)$-space root catalogue, by the same sum-of-component-sizes argument used earlier. For each root, traverse its canonical-deletion tree, outputting on entry at even depth and on exit at odd depth. The depth is $e_+(G)$, so its parity is directly computable. The alternating traversal uses only a constant number of parent, first-child and next-child queries between outputs. Keep the previous child's canonical code when computing its parent; that code resumes the sibling search regardless of the vertex labels produced by a tied canonical deletion. A constant number of current graphs and codes suffice, rather than a stack of labelled ancestors. Every root block outputs its root, so there are no empty blocks at transitions. This proves Theorem~\ref{thm:bounded-excess}. The cap $e_+\le k$ is part of the statement. Filtering this traversal for exact excess $k$, for connected graphs only, or for all graphs of maximum outdegree two does not inherit the delay bound by this proof. The construction is a bounded perturbation of partial functions, not a solution to every generalization suggested in the original paper.