Companion code for the paper:
Hamilton Cycles in the Noncrossing Partition Refinement Graph Alex Chengyu Li, 2026
Under review at Electronic Journal of Combinatorics
An interactive visualization of the minimum degree theorem (Theorem 3) is available at:
pip install numpy
python verify_all.pyThis verifies all results from the paper in a few minutes (n ≤ 12). For the full verification including n = 14 (takes hours):
python verify_all.py --full| Claim | Script | Time |
|---|---|---|
| Theorem 1: N_{2m+1}(−1) = (−1)^{m+1} C_m for n = 2..100 | verify_all.py |
< 1s |
| Table 1: Bipartite class counts for n = 2..30 | verify_all.py |
< 1s |
| Table 2: Graph statistics for NC_R(n), n = 4..12 | verify_all.py |
minutes |
| Hamilton cycles for even n = 4, 6, 8, 10, 12 | verify_all.py |
minutes |
| Hamilton cycle for n = 14 (2,674,440 vertices) | verify_all.py --full |
hours |
src/
narayana.py Narayana numbers, parity identity, bipartite counts
noncrossing.py Generate noncrossing partitions, build NC_R(n)
hamilton.py Warnsdorff's heuristic + Posa rotation-closure
verify_all.py One-click verification of all paper results
data/results/ Pre-computed cycle metadata for each even n
- Python ≥ 3.9
- NumPy ≥ 1.24 (only needed for
--full)
@article{li2026hamilton,
title = {Hamilton Cycles in the Noncrossing Partition Refinement Graph},
author = {Li, Alex Chengyu},
year = {2026},
doi = {10.5281/zenodo.18957708},
note = {Under review at Electronic Journal of Combinatorics}
}MIT