\subsection{Stateless cursors for disconnected functional digraphs} \label{sec:arbitrary-cursor} The connected successor and predecessor also give stateless cursors for the complete graph listing. The input convention is essential: the components are already ordered first by size and then, within each equal-size block, by the connected generator's order. The cursor does not perform this normalization as part of its input contract. For the original DPT child order, a separate linear normalization is proved in Theorem~\ref{thm:dpt-linear-original-normalization}. That theorem must not be used silently with the elementary position order, since the two connected listings can order equal-sized components differently. The cursor below works with either order once the component list and connected queries use the same convention. This is a direct cursor refinement of the multiset-product construction in~\cite{DPT2024}, not a new decomposition of functional graphs. Its extra interface requirement is that the next or previous object can be recovered from the supplied ordered representation, without saved carry state. It does not accept an arbitrarily ordered target array and silently assume that the generation-order normalization is free. One can think of an equal-size block as a nondecreasing list of catalogue indices, although the algorithm never computes these indices. For example, the successor of $(1,1,3)$ is $(1,1,4)$ when index $4$ exists; if $3$ is the last index, it is $(1,2,2)$. Equality and a connected successor suffice to make this change. \begin{proposition}[Disconnected successor and predecessor] \label{prop:arbitrary-cursor} Given the current graph in this multiset-product representation, its successor or predecessor can be computed in $O(n)$ time and $O(n)$ working words without retaining state from earlier outputs. The same holds for a fixed restriction whose connected objects, at every feasible size, form an ancestor-closed subtree of the chosen reverse-search tree, provided its child and sibling queries retain the stated linear bounds and its feasible component sizes form $\{\lambda,\lambda+1,\ldots,n\}$. The restrictions and child order are fixed parameters of the cursor, and every supplied component belongs to that restricted catalogue. \end{proposition} \begin{proof} The first connected code of size $i$ is its pure cycle. By the alternating traversal, the last code is the last child of that root, or the root itself if it has no child. Both codes can be obtained in $O(i)$ time, also after parent-closed pruning. In the unrestricted case the last code is the cycle with $i-2$ trivial trees and one two-vertex tree when $i\ge2$. For a successor, inspect components from right to left. At the first component with a connected successor, replace it and the later entries of its equal-size block by that successor. Fully exhausted later size blocks are reset to their first connected codes. This is the usual lexicographic successor of nondecreasing catalogue positions, with the rightmost size block changing fastest. For a predecessor, a component cannot be decreased if it equals its immediate predecessor in the same size block. Otherwise, if its connected predecessor exists, use it and reset every later position to its size class's last code. If it differs from the preceding component, decreasing its catalogue index by one cannot cross the lower bound imposed by that preceding component. This uses code equality, not comparisons of unknown catalogue ranks. The rightmost eligible change gives the lexicographic predecessor. Each component is queried at most once in either carry scan. Code comparisons, resets and copies are charged to the involved component sizes, whose sum is $n$. The full product step therefore costs $O(n)$. When the product is exhausted, advance its nondecreasing size partition. For the next partition, keep the prefix before its last two parts $a\le b$, set $R=a+b$ and $\ell=a+1$, and repeatedly append $\ell$ while $R\ge2\ell$, subtracting it from $R$; append the final remainder. A one-part partition has no successor. For the previous partition, scan positions $j$ from right to left and let $R$ be the sum of the scanned suffix. Its lower bound is the preceding part, or $\lambda$ at the first position. The largest feasible smaller pivot is \[ a=\min\{p_j-1,\lfloor R/2\rfloor\}. \] If $a$ reaches the lower bound, replace the suffix by $(a,R-a)$ and stop. This is the greatest possible smaller first part, followed by the greatest lexicographic completion, a single remaining part. No predecessor exists if every pivot fails. Both partition operations use one scan and rebuild of at most $n$ entries. Initialize every new component at its first code for a forward transition, or its last code for a backward transition. This also costs $O(n)$. The empty graph is handled separately. No information other than the current graph, the restriction parameters and linear temporary buffers is required. Termination costs the same as a failed carry and partition scan, proving the stated bounds. \end{proof}