Generation and indexing near functional digraphs
Version 1 / Nov 30, 2026 / CC0 1.0
Abstract
We examine generation and direct indexing of unlabelled graphs close to partial functions, in response to research directions of Defrain, Porreca and Timofeeva. Earlier iterator and string algorithms answer part of the functional-digraph programme. For exact directed branching excess , we give a deterministic generator with full delay and working words, allowing both input degree caps and optional loop exclusion, for the possibly disconnected class. A quadratic-delay, linear-space construction also permits connectedness. Finite kernel actions and implicit weighted alphabets give counting, ranking and unranking with polynomial degrees independent of . The undirected extension permits arbitrary tree and unicyclic components under the sum of positive component excesses; a weighted bracelet oracle handles reflection symmetries without enumerating its alphabet.
We derive same-class baselines from earlier generation and indexing methods, including quadratic-delay generation with linear space for the possibly disconnected class, and identify the additional arguments needed for the sharper bounds. Two established deterministic string data structures support the same generation bound. A reorganized evaluation of an older bracelet recurrence also matches the sparse oracle's numerical budget, conditionally on a correct counting interpretation of its states. The limitations identified for that recurrence's stated interface do not exclude other polynomial counting adaptations. We give explicit bit costs, distinguish classical ingredients from the quantitative compositions established here, and state the remaining representation and algorithmic boundaries. Historical priority of the combined results is not asserted. Complete proofs and detailed source comparisons are provided in a separate technical companion. The main paper also states linear-bit functional generation, constant-amortized maintenance of outgoing-target arrays, and the equality class of the stated reduction bound. An expanded literature review explains which original questions are already answered by earlier work, which answers require a further deduction, and what remains to be established.
Tools used
- OpenAI
- Codex
- Anthropic
- Claude Opus
References
- Oscar Defrain, Antonio E. Porreca, and Ekaterina Timofeeva. Polynomial-delay generation of functional digraphs up to isomorphism. Discrete Applied Mathematics 357:24--33, 2024. doi:10.1016/j.dam.2024.05.030 (https://doi.org/10.1016/j.dam.2024.05.030). https://aeporreca.org/papers/polynomial-delay-generation-of-functional-digraphs-up-to-isomorphism.pdf.DOI
- Nuutti Kuosa. Technical appendices: Companion to Generation and indexing near functional digraphs . Hexagon, 2026. hexagon:2611.01504 (https://hexagonmath.org/2611.01504).hexagon
- Conrado Martínez and Xavier Molinero. An Efficient Generic Algorithm for the Generation of Unlabelled Cycles. ALCOM-FT Technical Report ALCOMFT-TR-03-5, June 2003. Original technical report inspected; the 2004 published chapter is a separate version. https://www.cs.au.dk/~gerth/alcom-ft/TR/ALCOMFT-TR-03-5.html.link
- Conrado Martínez and Xavier Molinero. An efficient generic algorithm for the generation of unlabelled cycles. In Mathematics and Computer Science III , Trends in Mathematics, pp. 187--197. Birkhäuser, 2004. doi:10.1007/978-3-0348-7915-6_19 (https://doi.org/10.1007/978-3-0348-7915-6_19). Accessible prepublication report LSI-03-35-R, 6 June 2003: https://hdl.handle.net/2117/97029.DOI
- Conrado Martínez and Xavier Molinero. Generic Algorithms for the Generation of Combinatorial Objects. ALCOM-FT Technical Report ALCOMFT-TR-03-4, June 2003; MFCS 2003, LNCS 2747, pp. 572--581. Page references are to the original report. https://www.cs.au.dk/~gerth/alcom-ft/TR/ALCOMFT-TR-03-4.html.link
- Conrado Martínez and Xavier Molinero. Efficient iteration in admissible combinatorial classes. Theoretical Computer Science 346(2--3):388--417, 2005. doi:10.1016/j.tcs.2005.08.028 (https://doi.org/10.1016/j.tcs.2005.08.028). https://www.sciencedirect.com/science/article/pii/S0304397505004986.DOI
- Xavier Molinero Albareda. Ordered Generation of Classes of Combinatorial Structures . PhD thesis, Universitat Politècnica de Catalunya, 2005. https://web.mat.upc.edu/xavier.molinero/thesis.pdf.gz.link
- Terry Beyer and Sandra Mitchell Hedetniemi. Constant time generation of rooted trees. SIAM Journal on Computing 9(4):706--712, 1980. doi:10.1137/0209055 (https://doi.org/10.1137/0209055). https://epubs.siam.org/doi/10.1137/0209055.DOI
- Robert Alan Wright, Bruce Richmond, Andrew Odlyzko, and Brendan D. McKay. Constant time generation of free trees. SIAM Journal on Computing 15(2), 540--548, 1986. doi:10.1137/0215039 (https://doi.org/10.1137/0215039). https://users.cecs.anu.edu.au/~bdm/papers/ConstantTimeTrees.pdf.DOI
- Joe Sawada and Aaron Williams. A universal cycle for strings with fixed-content (which are also known as multiset permutations). In Algorithms and Data Structures (WADS 2021) , LNCS 12808, pp. 599--612, 2021. doi:10.1007/978-3-030-83508-8_43 (https://doi.org/10.1007/978-3-030-83508-8_43). https://www.cis.uoguelph.ca/~sawada/papers/fixedContentUCycle.pdf.DOI
Show all 63 referencesShow fewer references
- Tomasz Kociumaka. Minimal suffix and rotation of a substring in optimal time. In 27th Annual Symposium on Combinatorial Pattern Matching (CPM 2016) , LIPIcs 54, pp. 28:1--28:12, 2016. doi:10.4230/LIPIcs.CPM.2016.28 (https://doi.org/10.4230/LIPIcs.CPM.2016.28). https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.CPM.2016.28. Full version: arXiv:1601.08051v1, 29 January 2016, https://arxiv.org/abs/1601.08051v1. The border-of-a-Lyndon-power observation occurs in the proof of Lemma 3.9, p. 6, of the full version.arXivDOI
- J. Ian Munro, Rajeev Raman, Venkatesh Raman, and S. Srinivasa Rao. Succinct representations of permutations and functions. Theoretical Computer Science 438:74--88, 2012. doi:10.1016/j.tcs.2012.03.005 (https://doi.org/10.1016/j.tcs.2012.03.005). Author version: https://arxiv.org/abs/1108.1983v1.DOI
- Sergei V. Konyagin, Florian Luca, Bernard Mans, Luke Mathieson, Min Sha, and Igor E. Shparlinski. Functional graphs of polynomials over finite fields. Journal of Combinatorial Theory, Series B 116:87--122, 2016. doi:10.1016/j.jctb.2015.07.003 (https://doi.org/10.1016/j.jctb.2015.07.003). Author version: https://arxiv.org/abs/1307.2718v3.DOI
- Gonzalo Navarro and Kunihiko Sadakane. Fully functional static and dynamic succinct trees. ACM Transactions on Algorithms 10(3), article 16, 16:1--16:39, 2014. doi:10.1145/2601073 (https://doi.org/10.1145/2601073). Author version: https://users.dcc.uchile.cl/~gnavarro/ps/talg12.pdf.DOI
- Wojciech Rytter. On maximal suffixes and constant-space linear-time versions of KMP algorithm. Theoretical Computer Science 299(1--3):763--774, 2003. doi:10.1016/S0304-3975(02)00590-X (https://doi.org/10.1016/S0304-3975(02)00590-X).DOI
- Joe Sawada and Aaron Williams. Constructing the first (and coolest) fixed-content universal cycle. Algorithmica 85(6):1754--1785, 2023. First published online 4 November 2022. doi:10.1007/s00453-022-01047-2 (https://doi.org/10.1007/s00453-022-01047-2). https://www.socs.uoguelph.ca/~sawada/papers/Cool_Fixed_Content_Ucycle.pdf.DOI
- N. G. de Bruijn and D. A. Klarner. Multisets of aperiodic cycles. SIAM Journal on Algebraic and Discrete Methods 3(3), 359--368, 1982. doi:10.1137/0603037 (https://doi.org/10.1137/0603037). https://pure.tue.nl/ws/files/1674487/597568.pdf.DOI
- Jacob Steinhardt. Permutations with ascending and descending blocks. The Electronic Journal of Combinatorics 17(1), R14, 2010. doi:10.37236/286 (https://doi.org/10.37236/286). https://cs.stanford.edu/~jsteinhardt/publications/ascents/paper.pdf.DOI
- Golnaz Badkobeh, Hideo Bannai, and Dominik Köppl. Bijective BWT Based Compression Schemes. In SPIRE 2024 , LNCS 14899, pp. 16--25, 2024. doi:10.1007/978-3-031-72200-4_2 (https://doi.org/10.1007/978-3-031-72200-4_2). Preprint v1, 24 June 2024: https://arxiv.org/abs/2406.16475v1.DOI
- Golnaz Badkobeh, Hideo Bannai, Tomohiro I, and Dominik Köppl. Bijective BWT Based Compression Schemes. Theory of Computing Systems 70, article 42, 2026. Published 3 July 2026. doi:10.1007/s00224-025-10235-w (https://doi.org/10.1007/s00224-025-10235-w). https://link.springer.com/article/10.1007/s00224-025-10235-w.DOI
- Gang Li. Generation of Rooted Trees and Free Trees . MSc thesis, University of Victoria, 1996. https://webhome.cs.uvic.ca/~ruskey/Theses/GangLiMScThesis.pdf.link
- Gang Li and Frank Ruskey. The advantages of forward thinking in generating rooted and free trees. In 10th Annual ACM--SIAM Symposium on Discrete Algorithms (SODA 1999) , pp. S939--S940, 1999. https://webhome.cs.uvic.ca/~ruskey/Publications/RootedFreeTree/RootedFreeTree.html.link
- Frank Ruskey and Joe Sawada. An efficient algorithm for generating necklaces with fixed density. SIAM Journal on Computing 29(2):671--684, 1999. doi:10.1137/S0097539798344112 (https://doi.org/10.1137/S0097539798344112). Author-hosted published PDF: https://www.cis.uoguelph.ca/~sawada/papers/fix.pdf. The published text was inspected, especially Sections 3--4 and Theorem 4.7 on p. 683.DOI
- Joe Sawada and Aaron Williams. A Gray code for fixed-density necklaces and Lyndon words in constant amortized time. Theoretical Computer Science 502:46--54, 2 September 2013. doi:10.1016/j.tcs.2012.01.013 (https://doi.org/10.1016/j.tcs.2012.01.013). Inspected author version dated 13 September 2010: https://www.socs.uoguelph.ca/~sawada/papers/bubble4.pdf. Figure 2 and Theorem 2 were checked in that version; journal metadata was verified separately. Author-version page references do not refer to the final journal pagination.DOI
- Brendan D. McKay. Isomorph-free exhaustive generation. Journal of Algorithms 26(2), 306--324, 1998. doi:10.1006/jagm.1997.0898 (https://doi.org/10.1006/jagm.1997.0898). https://users.cecs.anu.edu.au/~bdm/papers/orderly.pdf.DOI
- D. Avis and K. Fukuda, Reverse search for enumeration, Discrete Applied Mathematics 65(1--3) (1996), 21--46. DOI (https://doi.org/10.1016/0166-218X(95)00026-N).DOI
- Shin-ichi Nakano and Takeaki Uno. Efficient Generation of Rooted Trees. NII Technical Report NII-2003-005E, 2 July 2003. https://www.nii.ac.jp/TechReports/public_html/03-005E.pdf.link
- Jan Ramon and Siegfried Nijssen. Polynomial-delay enumeration of monotonic graph classes. Journal of Machine Learning Research 10, 907--929, 2009. https://www.jmlr.org/papers/v10/ramon09a.html.link
- Takeaki Uno. Two General Methods to Reduce Delay and Change of Enumeration Algorithms. NII Technical Report NII-2003-004E, National Institute of Informatics, 8 April 2003. https://www.nii.ac.jp/TechReports/public_html/03-004E.pdf.link
- K. Mehlhorn, R. Sundar, and C. Uhrig. Maintaining dynamic sequences under equality tests in polylogarithmic time. Algorithmica 17(2), 183--198, 1997. doi:10.1007/BF02522825 (https://doi.org/10.1007/BF02522825).DOI
- P. Gawrychowski, A. Karczmarz, T. Kociumaka, J. Łącki, and P. Sankowski. Optimal dynamic strings. In Proceedings of the 2018 Annual ACM--SIAM Symposium on Discrete Algorithms (SODA) , pp. 1509--1528, 2018. doi:10.1137/1.9781611975031.99 (https://doi.org/10.1137/1.9781611975031.99). The extended preprint, arXiv:1511.02612v2 (8 April 2016), Section 1.1, p. 5, explicitly states the dynamic-tree-isomorphism consequence. https://arxiv.org/abs/1511.02612.arXivDOI
- Steven Kelk and Céline Scornavacca. Constructing minimal phylogenetic networks from softwired clusters is fixed parameter tractable. Algorithmica 68(4), 886--915, 2014. doi:10.1007/s00453-012-9708-5 (https://doi.org/10.1007/s00453-012-9708-5). https://arxiv.org/abs/1108.3653.DOI
- Steven Kelk, Leo van Iersel, Nela Lekić, Simone Linz, Céline Scornavacca, and Leen Stougie. Cycle killer \ qu'est-ce que c'est? On the comparative approximability of hybridization number and directed feedback vertex set. SIAM Journal on Discrete Mathematics 26(4):1635--1656, 2012. doi:10.1137/120864350 (https://doi.org/10.1137/120864350). Author preprint: https://arxiv.org/abs/1112.5359.DOI
- Steven Kelk, Simone Linz, and Ruben Meuwese. Cyclic generators and an improved linear kernel for the rooted subtree prune and regraft distance. Information Processing Letters 180, article 106336, 2023. doi:10.1016/j.ipl.2022.106336 (https://doi.org/10.1016/j.ipl.2022.106336). Author manuscript, 6 October 2022: https://simonelinz.wordpress.com/wp-content/uploads/2022/10/klm22.pdf.DOI
- Daniel Cloutier and Joshua Holden. Mapping the discrete logarithm. Involve 3(2):197--213, 2010. doi:10.2140/involve.2010.3.197 (https://doi.org/10.2140/involve.2010.3.197). https://www.rose-hulman.edu/~holden/Preprints/Published/involve-v3-n2-p06-p.pdf.DOI
- Philippe Gambette, Vincent Berry, and Christophe Paul. The structure of level- phylogenetic networks. In Combinatorial Pattern Matching (CPM 2009) , LNCS 5577, pp. 289--300, 2009. doi:10.1007/978-3-642-02441-2_26 (https://doi.org/10.1007/978-3-642-02441-2_26). https://igm.univ-mlv.fr/~gambette/2009GambetteBerryPaulGenerators.pdf.DOI
- Louxin Zhang. Counting doubly labelled trees and one-component networks. arXiv:2611.16186v1, 12 November 2026. https://arxiv.org/abs/2611.16186v1.arXiv
- T. M. Cover, Enumerative Source Encoding, IEEE Transactions on Information Theory 19(1) (1973), 73--77. DOI (https://doi.org/10.1109/TIT.1973.1054929); author's PDF (https://isl.stanford.edu/~cover/papers/transIT/0073cove.pdf).DOI
- Peter Kagey. Ranking and unranking restricted permutations. Discrete Applied Mathematics 355, 247--261, 2024. doi:10.1016/j.dam.2024.05.010 (https://doi.org/10.1016/j.dam.2024.05.010). Inspected author manuscript, arXiv:2210.17021v2, 9 November 2023, Theorems 9--10: https://arxiv.org/html/2210.17021v2.arXivDOI
- T. Grüner, R. Laue and M. Meringer, Algorithms for Group Actions Applied to Graph Generation, Groups and Computation II , DIMACS Series 28 (1997), 113--122. Inspected author PDF (https://molgen.de/download/pubs/AlgGroupActDIMACS.pdf), Section 2, author pp. 2--3, under the manuscript title Algorithms for group actions: homomorphism principle and orderly generation applied to graphs ; published volume (https://doi.org/10.1090/dimacs/028).DOI
- T. Grüner, Strategien zur Konstruktion diskreter Strukturen und ihre Anwendung auf molekulare Graphen, MATCH Communications in Mathematical and in Computer Chemistry 39 (1999), 39--126. Original publication (https://match.pmf.kg.ac.rs/electronic_versions/Match39/match39_39-126.pdf).link
- Leslie Ann Goldberg and Mark Jerrum. Randomly Sampling Molecules. SIAM Journal on Computing 29(3), 834--853, 2000. doi:10.1137/S0097539797318864 (https://doi.org/10.1137/S0097539797318864). Preliminary version: SODA 1997, pp. 183--192. Inspected full version: Warwick Research Report CS-RR-306, 17 June 1996, Sections 2, 4 and 5: https://www.dcs.warwick.ac.uk/report/pdfs/cs-rr-306.pdf.DOI
- Toshihiko Haruna, Takashi Horiyama, and Koya Shimokawa. On the Enumeration of Polymer Topologies. IPSJ SIG Technical Report , 2017-AL-162(5), 1--5, 2017. https://ipsj.ixsq.nii.ac.jp/record/178376/files/IPSJ-AL17162005.pdf.link
- Naveed Ahmed Azam, Aleksandar Shurbevski, and Hiroshi Nagamochi. Enumerating Tree-Like Graphs and Polymer Topologies with a Given Cycle Rank. Entropy 22(11), 1295, 2020. doi:10.3390/e22111295 (https://doi.org/10.3390/e22111295). Inspected published PDF, Theorem 3, pp. 13--14, and Table 2, p. 15: https://mdpi-res.com/d_attachment/entropy/entropy-22-01295/article_deploy/entropy-22-01295.pdf.DOI
- Duncan Adamson, Vladimir V. Gusev, Igor Potapov, and Argyrios Deligkas. Ranking Bracelets in Polynomial Time. In 32nd Annual Symposium on Combinatorial Pattern Matching (CPM 2021) , LIPIcs 191, 4:1--4:17, 2021. doi:10.4230/LIPIcs.CPM.2021.4 (https://doi.org/10.4230/LIPIcs.CPM.2021.4).DOI
- Duncan Adamson. Algorithmic and Combinatorial Problems in Crystal Structure Prediction . PhD thesis, University of Liverpool, November 2021. doi:10.17638/03142949 (https://doi.org/10.17638/03142949). https://livrepository.liverpool.ac.uk/3142949/. Author-hosted full text (https://duncanadamson.github.io/PhD_Thesis.pdf).DOI
- Christophe Reutenauer. A survey on noncommutative rational series. In Formal Power Series and Algebraic Combinatorics (FPSAC 1994) , pp. 393--402, 1994. Section 6: Hadamard-product closure. Proceedings full text (https://fpsac-archive.github.io/FPSAC94/ARTICLES/45Reutenauer.pdf).link
- S. Karim, J. Sawada, Z. Alamgir, and S. M. Husnine. Generating bracelets with fixed content. Theoretical Computer Science 475, 103--112, 2013. doi:10.1016/j.tcs.2012.11.024 (https://doi.org/10.1016/j.tcs.2012.11.024). Author preprint: https://www.socs.uoguelph.ca/~sawada/papers/fix-brace.pdf.DOI
- H. S. Wilf, The uniform selection of free trees, Journal of Algorithms 2(2) (1981), 204--207. https://doi.org/10.1016/0196-6774(81)90021-3.DOI
- H. S. Wilf, Combinatorial Algorithms: An Update , CBMS-NSF Regional Conference Series in Applied Mathematics, vol. 55, SIAM, Philadelphia, 1989. https://doi.org/10.1137/1.9781611970166.DOI
- F. Bridoux, C. Crespelle, T. H. D. Phan and A. Richard. Dividing sum of cycles in the semiring of functional digraphs. Natural Computing 25, article 11 (2026). doi:10.1007/s11047-026-10065-w (https://doi.org/10.1007/s11047-026-10065-w). Published 19 February 2026. Inspected author version: arXiv:2504.11943v2 (https://arxiv.org/abs/2504.11943v2), 3 March 2026, titled Dividing sums of cycles in the semiring of functional digraphs .arXivDOI
- C. Crespelle, T. H. D. Phan and A. Richard. Tensor Product of Functional Graphs: Algorithms for Factorization and Polynomial Root-Finding Restricted to the Cycle Part . Manuscript dated 7 June 2025. Inspected version: HAL-05392325v1 (https://hal.science/hal-05392325v1), deposited 2 December 2025; full author manuscript (https://hal.science/hal-05392325v1/file/Tensor_Product_For_Functional_Digraphs_HAL.pdf). Related SSRN record, posted 23 June 2025: doi:10.2139/ssrn.5316210 (https://doi.org/10.2139/ssrn.5316210). These records are treated as versions of the same work.DOI
- Maximilien Gadouleau and Marianne Johnson. Semirings of formal sums and injective partial transformations. arXiv:2603.26508 , version 1, submitted 27 March 2026. doi:10.48550/arXiv.2603.26508 (https://doi.org/10.48550/arXiv.2603.26508). https://arxiv.org/abs/2603.26508v1. Full text: https://arxiv.org/html/2603.26508v1.arXivDOI
- Max A. Alekseyev. Enumerating Solutions to Type Composition Identities of Finite Endofunctions. arXiv:2611.19668 , version 2, revised 22 November 2026; first submitted 14 November 2026. doi:10.48550/arXiv.2611.19668 (https://doi.org/10.48550/arXiv.2611.19668). https://arxiv.org/abs/2611.19668v2. Full text: https://arxiv.org/html/2611.19668v2.arXivDOI
- Stephen Alstrup, Gerth Stølting Brodal, and Theis Rauhe. Dynamic pattern matching. DIKU Technical Report 98/27, University of Copenhagen, 1998. Expanded 17-page report; Section 4 and Appendices A--C. https://cs.au.dk/~gerth/papers/diku-98-27.pdf.link
- Stephen Alstrup, Gerth Stølting Brodal, and Theis Rauhe. Pattern matching in dynamic texts. In Proceedings of the Eleventh Annual ACM--SIAM Symposium on Discrete Algorithms (SODA 2000) , pages 819--828. SIAM, 2000. https://cs.au.dk/~gerth/papers/soda00.pdf.link
- T. Nishimoto, T. I, S. Inenaga, H. Bannai, and M. Takeda. Fully Dynamic Data Structure for LCE Queries in Compressed Space. In 41st International Symposium on Mathematical Foundations of Computer Science (MFCS 2016) , LIPIcs 58, pp. 72:1--72:14, 2016. doi:10.4230/LIPIcs.MFCS.2016.72 (https://doi.org/10.4230/LIPIcs.MFCS.2016.72).DOI
- Philippe Flajolet and Robert Sedgewick. Analytic Combinatorics . Cambridge University Press, 2009. doi:10.1017/CBO9780511801655 (https://doi.org/10.1017/CBO9780511801655). Author copy: https://algo.inria.fr/flajolet/Publications/book.pdf.DOI
- Tomasz Kociumaka, Jakub Radoszewski, and Wojciech Rytter. Efficient ranking of Lyndon words and decoding lexicographically minimal de Bruijn sequence. SIAM Journal on Discrete Mathematics 30(4):2027--2046, 2016. doi:10.1137/15M1043248 (https://doi.org/10.1137/15M1043248). Corrected extended manuscript, arXiv v2, 11 December 2023: https://arxiv.org/abs/1510.02637v2.DOI
- Y.-O. Kim, J. Lee, and K. K. Park. A zeta function for flip systems. Pacific Journal of Mathematics , 209(2):289--301, 2003. https://doi.org/10.2140/pjm.2003.209.289.DOI
- Ryuji Masui, Aleksandar Shurbevski, and Hiroshi Nagamochi. Enumeration of unlabeled tree by dynamic programming. Technical Report 2019-003, Department of Applied Mathematics and Physics, Kyoto University, 25 July 2019. https://www.amp.i.kyoto-u.ac.jp/tecrep/ps_file/2019/2019-003.pdf.link
- Joe Sawada and Aaron Williams. Practical algorithms to rank necklaces, Lyndon words, and de Bruijn sequences. Journal of Discrete Algorithms 43, 95--110, 2017. doi:10.1016/j.jda.2017.01.003 (https://doi.org/10.1016/j.jda.2017.01.003). Author version: https://www.cis.uoguelph.ca/~sawada/papers/ranking.pdf.DOI
- Duncan Adamson, Argyrios Deligkas, Vladimir V. Gusev, and Igor Potapov. Ranking bracelets in polynomial time. Full version, arXiv:2104.04324v1, 9 April 2021. https://arxiv.org/abs/2104.04324v1.arXiv
Version history
- v1 · 33 pagesSubmitted by Nuutti KuosaInitial depositCurrentNov 30, 2026