Generating cyclic pivot Gray codes for well-ordered $k$-degenerate graphs in constant amortized time
Lei Dong, Dennis Wong, Bowie Liu, Rui Bao, Lin Chen, Chan-Tong Lam, Sio-Kei Im
Key points
From the paper's conclusion- We present the first simple algorithms that generate, rank, and unrank cyclic pivot Gray codes for well-ordered $k$-degenerate graphs, where consecutive graphs differ by the addition, removal, or pivoting of a single edge.
Abstract
A graph $G$ is $k$-degenerate if there exists an ordering $v_1, v_2, \dots, v_n$ of its vertices such that each vertex $v_i$ has at most $k$ neighbors $v_j$ in $G$ with $j < i$. A well-ordered $k$-degenerate graph is a labeled graph on the vertex set $\{1, 2, \dots, n\}$ in which every vertex $i$ has at most $k$ neighbors among $1, 2, \dots, i-1$. We present the first simple algorithms that generate, rank, and unrank cyclic pivot Gray codes for well-ordered $k$-degenerate graphs, where consecutive graphs differ by the addition, removal, or pivoting of a single edge. Our algorithm generates each well-ordered $k$-degenerate graph in constant amortized time per graph, using $O(n^2)$ space, while ranking and unranking take $O(n^2)$ time and $O(n^2)$ space.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Geometric Derivation of the Bitner--Ehrlich--Reingold Loopless Gray Code AlgorithmarXiv · 2026
- Arboricity Nearly Bounds DegeneracyarXiv · 2026
- Faster Algorithms for Disjoint Paths in DAGs and Two Disjoint Shortest PathsarXiv · 2026
- A graded version of the separator theorem for planar graphsarXiv · 2026
- Graphs with Bounded Push-Pop Walk OrderingsarXiv · 2026
- Generalized oriented chromatic numbers and directed generalized coloring numbers of graphsarXiv · 2026