Generating cyclic pivot Gray codes for well-ordered
k-degenerate graphs in constant amortized time
This paper presents the first simple algorithms to generate, rank, and unrank cyclic pivot Gray codes for well-ordered $k$-degenerate graphs on vertex set $\{1,\dots,n\}$, where consecutive graphs differ by adding, removing, or pivoting a single edge. Each graph is generated in constant amortized time using $O(n^2)$ space, with ranking and unranking requiring $O(n^2)$ time and space. A graph is well-ordered $k$-degenerate if every vertex has at most $k$ neighbors among earlier-indexed vertices.