WorksMathematics
Enumeration of one-cycle signed chord diagrams and their duals for optimal Morse flows on closed surfaces
Abstract
Optimal Morse vector fields on closed surfaces, i.e.\ fields with the minimal possible number of critical points (a single source and a single sink), are classified up to topological trajectory equivalence by one-cycle signed chord diagrams in Kybalko, Prishlyak and Shchurko (2018). We recall this construction and the associated duality, which corresponds to reversing the direction of the flow, in a unified encoding in which both endpoints of a chord carry the same label, and we make it algorithmic. We give an explicit traversal procedure that detects one-cycle diagrams, a canonical form of an equivalence class under cyclic shifts, reversal and relabeling of chords, and a construction of the dual diagram. On this basis we describe an algorithm that enumerates all one-cycle signed chord diagrams with a given number of chords, both for orientable and for non-orientable surfaces, groups them into equivalence classes, pairs each class with its dual, and identifies the self-dual ones. The algorithm is implemented in Python and archived in Zenodo; its output is validated against the Harer–Zagier numbers in the orientable case and against orbit-size counts in both cases. We also note that, when a one-cycle diagram is read as a cellular embedding of a one-vertex graph, its dual diagram describes the embedding of the dual graph.
Introduction
The topological classification of dynamical systems is a foundational problem in geometric topology and the qualitative theory of differential equations. Structurally stable systems are of particular importance because their qualitative phase portraits remain invariant under small -perturbations of the vector field Peixoto [25]; Palis and de Melo [24]. On closed surfaces, such structurally stable flows are precisely the Morse–Smale vector fields Peixoto [26]; Oshemkov and Sharko [23]; Kibkalo and Yokoyama [18]. Gradient-like systems and Morse flows arise naturally as gradient fields of Morse functions with respect to suitable Riemannian metrics Smale [63, 64].
According to Smale’s construction, an optimal Morse flow, that is, one with a single source and a single sink, specifies a polar Morse function once all saddle points are placed at the same critical level. In Fomenko’s topological classification of integrable Hamiltonian systems and of functions on surfaces Bol’shinov and Fomenko (2004), such a structure is a simple atom with one input and one output, which corresponds to an edge of degree 2 in the associated Reeb (Kronrod–Reeb) graph Reeb [62]; Kronrod [21]; Kravchenko and Maksymenko [20]; Tereshchenko and Prishlyak [67]; Tereshchenko et al. [66]. The global topological structure of such flows is therefore encoded by one-cycle signed (marked) chord diagrams Kybalko et al. [22].
Fine topological invariants and combinatorial structures for flows and functions on surfaces have been developed in many settings. For closed two-dimensional manifolds, combinatorial schemes, three-color graphs, chord diagrams and -atoms were used to classify optimal flows, simple Morse functions and functions with non-degenerate critical points Prishlyak [48, 49, 51]; Kybalko et al. [22]; Prishlyak and Skochko [42]; Prishlyak and Loseva [31]. These methods were extended to surfaces with boundary and to non-compact surfaces, where complete classifications and deformation theories are available Prishlyak and Mischenko (2007); Hladysh and Pryshlyak [10]; Hladysh and Prishlyak [11, 8]; Prislyak and Prus (2017); Prishlyak and Loseva [58]; Prishlyak and Prus [34]; Borodzik et al. [4]; Prishlyak and Ovtsynov [33], and to flows on non-orientable surfaces such as the projective plane, the Möbius strip, the Klein bottle and Boy’s and Girl’s surfaces Prishlyak and Di Beo [30]; Prishlyak and Loseva [47]; Prishlyak and Stas [60]; Prishlyak and Butok [45]. In higher dimensions, topological invariants, handle decompositions, Heegaard diagrams and conjugacy classifications have been obtained for flows and functions on 3- and 4-manifolds Prishlyak [55, 38, 27, 40, 52, 50, 28, 53, 54, 59]; Prishlyak and Vyatchaninova [35]; Hatamian and Prishlyak [7]; Prishlyak et al. [41]. Related work on codimension-one flows, bifurcations, closed 1-forms and collective dynamics can be found in Bilun and Prishlyak [2]; Prishlyak et al. [36]; Prishlyak and Ovtsynov (2025).
Chord diagrams, that is, perfect matchings of points on a circle, are also a classical object of enumerative combinatorics. The numbers of chord diagrams and of gluings of polygon sides into surfaces of given genus were studied by Harer and Zagier [6], and an analogue of their formula for unicellular bicolored maps was obtained in Adrianov [1]. Counting chord diagrams of a given genus up to rotations was done by Cori and Marcus [5], who in particular treated the maximal case, that is, diagrams of genus with chords; Krasko [19] extended this count to the full dihedral group. The orientable one-cycle diagrams of the present paper are exactly these maximal diagrams. Enumeration of chord diagrams of other types, motivated by Vassiliev knot invariants, and of diagrams up to rotation and reflection is given in Stoimenow [65]; Khruzin [17]. Chord diagrams were further used as an invariant of functions on surfaces by Kadubovsky, who classified functions with one essentially critical point on oriented surfaces with boundary by means of color chord diagrams Kadubovsky and Klimchuk (2003), studied the realization and topological equivalence of functions with a single saddle point on oriented surfaces and counted non-equivalent functions for surfaces of prime-related genus Kadubovsky (2006), and computed the numbers of non-equivalent minimal functions on closed orientable and non-orientable surfaces Kadubovsky [14]. In a series of papers by Kadubovsky and his co-authors, two-color chord diagrams with a prescribed number of faces are enumerated under the action of the cyclic and the dihedral groups, with explicit formulas and tables of values Kadubovskyi and Sypchuk [15]; Kadubovskyi et al. (2021). Our one-cycle diagrams belong to the same circle of enumeration problems, but we treat the orientable and the non-orientable case, all genera and the pairing with duals within a single algorithm.
The chord diagram construction for optimal flows and the duality that corresponds to time reversal are due to Kybalko et al. [22]. The aim of the present paper is to make this theory algorithmic. In contrast to the classical notation, in which the two endpoints of a chord carry different indices, each chord here receives one label that occurs twice along the circle, which gives a canonical chord code of length . We recall the connection between one-cycle chord diagrams, Reeb graphs and embeddings of one-vertex graphs, and we give an explicit cycle-tracing procedure, a canonical form of an equivalence class, a construction of the dual diagram, and an enumeration algorithm for all one-cycle signed chord diagrams with a given number of chords. The algorithms are implemented in Python and archived together with visualization tools on Zenodo Prishlyak [43].
We describe an algorithm that, for given , enumerates all one-cycle chord diagrams and identifies the pairs of dual diagrams, corresponding to the flows and , together with the self-dual diagrams, whose flows are equivalent to their reverses.
The paper is organized as follows. Section 2 collects the necessary facts on Morse–Smale flows, optimal Morse flows and topological equivalence. Section 3 introduces signed chord diagrams, the code with identical endpoint labels and the canonical form of an equivalence class. Section 4 recalls the construction of the chord diagram of an optimal flow and shows that it is a one-cycle diagram. Section 5 treats the chord cycle and the dual diagram, and Section 6 describes the enumeration algorithm, its implementation and the numerical results.
Preliminaries
Morse–Smale and optimal Morse flows
We consider -smooth () dynamical systems with continuous time (flows) on a smooth compact surface . Let be a vector field generating the flow ; the trajectory through is denoted by .
Definition 2.1. Fixed (singular) points and closed trajectories are called the critical elements of .
Definition 2.2. A singular point of is hyperbolic (non-degenerate) if the Jacobian matrix
written in local coordinates, has no eigenvalue with zero real part. A closed trajectory is hyperbolic if the differential at of the Poincaré return map has no eigenvalue of absolute value .
Definition 2.3. A point is an -limit (-limit) point of if there is a sequence () such that . The set of all such points is the -limit set ().
Definition 2.4. The stable and unstable manifolds of a critical element are
For a singular point this means and , respectively; in particular .
Definition 2.5. A point is wandering for if there are a neighborhood of and such that for all ; otherwise is non-wandering. The set of non-wandering points is denoted by .
Definition 2.6. A vector field on a compact surface is a Morse–Smale vector field if (1) has finitely many critical elements, all hyperbolic; (2) is the union of the critical elements; (3) the stable and unstable manifolds of critical elements intersect transversally.
Hyperbolic singular points of a flow on a surface are of three types: sinks, saddles and sources. With the convention for a Morse function , they correspond to critical points of index 0, 1 and 2, respectively. Transversality excludes trajectories going from one saddle to another (saddle connections), since such a trajectory would lie in both and with the same tangent direction.
Definition 2.7. A Morse–Smale flow is a Morse flow if it has no closed trajectories. A Morse flow on a closed surface is optimal if it has the minimal number of singular points among all Morse flows on .
Theorem 2.8. Let be a closed connected surface. Then:
(a) a Morse flow on is optimal if and only if it has exactly one sink and exactly one source;
(b) an optimal Morse flow has saddles; thus if is orientable of genus , and if is non-orientable of genus .
Optimal Morse flows exist on every closed connected surface.
Proof. Let , , be the numbers of sources, sinks and saddles of a Morse flow. The sum of the indices of the singular points is (Poincaré–Hopf), and a source or sink has index , a saddle ; hence and the total number of singular points is . Since is the finite set of singular points, is a single singular point for every . Take outside the one-dimensional stable manifolds of the saddles and outside the singular points; then is not a saddle, and not a source (as for a source), hence a sink. So , and by time reversal . Therefore with equality exactly when , which gives (a) and . Existence is shown in Kybalko et al. [22] (equivalently, via a Morse function with one maximum and one minimum).
Topological equivalence
Definition 2.9. Two vector fields on are topologically (trajectory) equivalent, , if there is a homeomorphism that maps trajectories of onto trajectories of and preserves the direction of motion along them. The homeomorphism is not required to preserve an orientation of .
The time parametrization is ignored. The inverse of is the field , with the same trajectories traversed in the opposite direction. In general , so the relation “” is a different, weaker condition; both occur in § 5.
Theorem 2.10. Let be a topological equivalence of and . Then is a singular point of iff is a singular point of ; a trajectory of is closed iff its image is closed; and maps the -limit (-limit) set of every trajectory onto the -limit (-limit) set of the image trajectory.
Definition 2.11. A vector field , , is structurally stable if it has a neighborhood in the -topology such that for all .
On closed surfaces the structurally stable fields are exactly the Morse–Smale fields [26, 23] (); Kybalko and Yokoyama 2022); in particular, optimal Morse flows are structurally stable, and their classification up to is the object of this paper.
Signed Chord Diagrams and Canonical Encoding
We formalize chord diagrams using a unified endpoint labeling system suitable for algorithmization.
Definition 3.1. A chord diagram with chords consists of a boundary circle , distinct points on , and chords connecting these points in pairs (chords may cross when drawn in the disk).
In our encoding scheme:
Each chord is assigned a unique identifier .
Both endpoints of chord are assigned the same integer label .
Traversing counterclockwise from a fixed origin yields a sequence of length in which each integer from to appears exactly twice; positions are indexed by .
Definition 3.2. A code is in Restricted Growth String (RGS) canonical form if , and for every with the first occurrence of precedes the first occurrence of . For an arbitrary sequence in which every label occurs twice, its RGS normalization relabels the chords in order of first occurrence.
The RGS codes of length are in bijection with the perfect matchings of points; there are of them.
Definition 3.3. A signed chord diagram (or marked chord diagram) assigns a sign to each chord .
Definition 3.4. Two signed chord diagrams , are isomorphic if one can be transformed into the other via a cyclic shift of the code and a relabeling of the chords (signs are carried along with their chords). They are equivalent if they can additionally be related by a reversal (mirror reflection) of the boundary circle. We write for equivalence.
Canonical form of an equivalence class
Let be the dihedral group of order generated by the cyclic shift and the reversal of the code. For the diagram is obtained by applying to the code, taking the RGS normalization, and carrying the signs along with their chords (shifts and reversals do not change signs; relabeling permutes them). The canonical form of is the lexicographic minimum
Two signed diagrams are equivalent iff their canonical forms coincide. It is computed in time ( images, each normalized in ). If is replaced by its cyclic subgroup of order (shifts only), the same procedure yields isomorphism classes. The orbit of consists of distinct normalized codes; the stabilizer is the group of symmetries of .
Construction of a Chord Diagram from an Optimal Flow
The construction of a chord diagram from an optimal Morse flow follows Kybalko et al. [22]; we recall it here in the notation of § 4.
Let be a closed connected surface (orientable or not) and an optimal Morse vector field on , i.e. a Morse flow with a single source , a single sink , and saddle points . By Theorem 2.8, the number of saddles is , that is, if is orientable of genus and equals the non-orientable genus otherwise.
Neighborhood of the source. Let be a small closed disk around whose boundary is transversal to the trajectories of leaving ; each such trajectory meets exactly once.
Chords. For each saddle , the set consists of two trajectories (separatrices) issuing from and entering . Hence meets in exactly two points. Stable manifolds of distinct saddles are disjoint, so these pairs of points are pairwise disjoint on , which gives distinct points. Joining the two points of each pair by a chord inside the circle (the chords may cross each other in the picture) and labeling it by yields a chord diagram with chords.
Signs. Let be a regular neighborhood of , i.e. the disk with one band attached along the two points of the chord . If is orientable (an annulus), put ; if is a Möbius band, put . (In terms of the marking, corresponds to an unmarked and to a marked chord.)
Proposition 4.1. The signed chord diagram constructed above is a one-cycle diagram. Its chord cycle is the boundary of the basin of attraction of the sink .
Proof. The set is a bouquet of circles embedded in (the loop number is formed by the two separatrices entering ). Every point of lies on a trajectory with -limit , so is the basin of attraction of the sink, which is an open disk. Hence is a cellular embedding with a single face, and the boundary of this face, read along and the chords, is exactly the traversal (3) with the signs defined above.
Dependence on choices. The diagram depends on the choice of the disk , of the initial point on , of the orientation of (we do not fix an orientation of ), and of the numbering of the saddles. Changing them results, respectively, in an isotopy of the diagram, a cyclic shift of the code, a reversal, and a relabeling of the chords; the signs are unchanged by the first three operations and are carried along with their chords by the last one. Thus every optimal Morse flow on a closed surface induces a well-defined equivalence class of signed one-cycle chord diagrams (§ 3). Conversely, every equivalence class of one-cycle diagrams is realized by an optimal flow ([22 Theorem 3]).
Dual Chord Diagrams and Trajectory Cycles
We formalize the dualization procedure (formerly termed inverse diagrams) under the identical-label code format.
Tracing the chord cycle
Informally: start on a boundary arc between two chord endpoints and move counterclockwise; on reaching an endpoint of chord , jump along the chord to its opposite endpoint; then continue along in the same direction if , and in the reversed direction if ; repeat until the starting arc is reached again in the same direction.
Formally, for a position let be the position of the second endpoint of the chord . A state is a pair with and : the walker stands at the point and is about to move along the boundary arc towards the neighbouring point . One step is
where is called the arrival point. The tracing starts in the state , i.e. on the arc right after the first element of the code, and stops when this state recurs. The arrival points define the visit sequence .
Algorithm 1 Tracing the chord cycle
Require: code , signs
; ▷ list of arrival points
repeat
; append to
;
until
return
The map (3) is a permutation of the states, so the loop terminates in at most steps.
Definition 5.1. A chord cycle is the closed traversal path generated by (3). A diagram is a one-cycle diagram if and every label occurs exactly twice in ; equivalently, a single traversal covers all chords twice and all boundary arcs.
For the cycle passes every chord once in each direction. For a chord with both passes may arrive at the same endpoint, so the arrival points need not be pairwise distinct. For a one-vertex one-face map with edges the Euler characteristic is ; hence one-cycle diagrams with all signs exist only for (orientable surface of genus ), and one-cycle diagrams with at least one sign describe non-orientable surfaces of genus .
Dual chord diagram
Orient each chord from its endpoint to its endpoint , where are the positions of its endpoints in . In the visit sequence the label occurs twice, and each occurrence is an arrival either at or at ; the jump after an arrival at runs along the chord in the positive direction, after an arrival at in the negative one.
To construct the dual chord diagram of a one-cycle diagram :
Trace the chord cycle of and form the visit sequence of length .
The dual code is the RGS normalization of ; let be the relabeling that sends the labels of to the labels of .
The sign is if the cycle runs along chord in opposite directions (the two arrivals are at different endpoints), and if it runs along in the same direction (both arrivals at the same endpoint).
Replace the result by its canonical form (2).
Since depends on the base point and the direction of the tracing, the dual is a well-defined equivalence class.
Lemma 5.2. If is a one-cycle diagram, then is a one-cycle diagram, , and have the same (non-)orientable genus, and the class of depends only on the class of . Consequently, if is the number of equivalence classes, the number of unordered pairs and the number of self-dual classes, then .
Proof. See Kybalko et al. [22].
Theorem 5.3. Two optimal Morse flows , are topologically equivalent if and only if , and is topologically equivalent to the inverse flow if and only if .
Proof. See Kybalko et al. [22].
Remark 5.4. If a one-cycle signed chord diagram is interpreted as a cellular embedding of a single-vertex graph (a bouquet of circles) on a closed surface with a single 2-cell, then the dual chord diagram specifies the cellular embedding of the topological dual graph on ; is again a bouquet of circles with a single 2-cell.
Software Implementation and Enumeration Data
The enumeration algorithm has been fully implemented in Python and deposited in Zenodo Prishlyak [43]. For the genus parameter the program takes and if (orientable case), and with all sign vectors different from if (non-orientable case).
Algorithm 2 Enumeration of one-cycle classes
Require: number of chords , orientability flag
for each RGS code of length do codes
for each admissible sign vector do
if is a one-cycle diagram then
add to
end if
end for
end for
the set of unordered pairs with
return a pair with is self-dual
RGS codes are generated by backtracking: at each position one either closes one of the currently open chords or opens the next unused label, so exactly the perfect matchings of the points appear, each once. Each code is tested by Algorithm 1; the total cost of this test is (the factor is absent in the orientable case), plus for each code that passes. The set is a hash set, so the memory is proportional to . For every class the dual is computed as in Subsection 5.2 and located in (Lemma 5.2 guarantees that it is there). The program outputs , the number of pairs and the number of self-dual classes. The list of classes can be saved to a JSON file containing the number of chords, the input genus, the orientability flag, and a list of diagrams, each given by its canonical code and its sign vector (one representative per class); the pairs are recovered by applying the duality of Subsection 5.2.
Validation. The program was checked against known enumerative results. In the orientable case the number of one-cycle rooted codes equals the Harer–Zagier number Harer and Zagier [6]: 1, 21, 1485 for . The numbers of equivalence classes under the dihedral group for coincide with the numbers of maximal chord diagrams up to all isomorphisms computed by Krasko [19]. For arbitrary sign vectors, the numbers of rooted one-cycle codes (orientable and non-orientable together) 1, 5, 41, 509, 8229 for coincide with the numbers of rooted one-vertex one-face maps with edges on all closed surfaces given there. Moreover, in both cases the sum of the orbit sizes over all classes equals the number of rooted one-cycle codes (e.g. 21 for orientable and 41 for non-orientable), and for every class its dual is found in .
| Genus | Total | Dual Pairs | Self-Dual |
| -8 | 3534490 | 1775258 | 16026 |
| -7 | 144904 | 73220 | 1536 |
| -6 | 7190 | 3847 | 504 |
| -5 | 473 | 266 | 59 |
| -4 | 47 | 35 | 23 |
| -3 | 8 | 6 | 4 |
| -2 | 2 | 2 | 2 |
| -1 | 1 | 1 | 1 |
| 0 | 1 | 1 | 1 |
| 1 | 1 | 1 | 1 |
| 2 | 4 | 4 | 4 |
| 3 | 82 | 56 | 30 |
| 4 | 7258 | 3827 | 396 |
Table 1. Enumeration metrics for one-cycle signed chord diagrams across surface genus . Here is the total count of non-equivalent diagrams, is the number of distinct dual pairs, and is the number of self-dual diagrams.
Conclusion
In this paper, we have established a unified combinatorial framework for the topological classification of optimal Morse flows on closed surfaces based on single-cycle chord diagrams. By leveraging Smale’s theorem, we demonstrated that setting equal values at all saddle critical points naturally translates polar Morse flows into Morse functions corresponding to Fomenko atoms with a single input and output, which map to degree-2 edges on Kronrod–Reeb graphs. The upgraded indexing convention—assigning matching labels to chord endpoints—provides a compact and canonical representation suitable for algorithmic enumeration and dual graph embeddings.
The upgraded indexing convention — assigning matching labels to chord endpoints — provides a compact and canonical representation suitable for algorithmic enumeration. Moreover, the dual chord diagram describes the same flow with reversed time: replacing the vector field by interchanges the source and the sink, and the diagram is replaced by its dual. Our algorithm therefore not only lists the diagrams but also finds the pairs of dual diagrams, i.e. the pairs of mutually reversed flows, and the self-dual diagrams, i.e. the flows equivalent to their reverses. For example, among the 82 diagrams of genus there are 30 self-dual ones and 26 dual pairs, so there are 56 classes of flows up to time reversal.
The methodology developed here opens several natural avenues for further research and generalizations:
Multi-cycle chord diagrams: Extending the canonical chord encoding from single-source (polar) flows to arbitrary Morse-Smale flows with multiple sources and sinks on higher-genus closed surfaces.
Manifolds with boundary: Adapting the chord-diagram formalism to capture boundary critical points, sliding vector fields, and boundary-parallel trajectories on surfaces with non-empty boundary.
Higher-dimensional generalizations: Applying multi-dimensional handle decomposition codes and generalized Reeb graphs to classify Morse-Smale flows on 3-manifolds and 4-manifolds.
Software ecosystem and visualization: Integrating our single-cycle chord diagram algorithms with interactive software packages on Zenodo Prishlyak [43] to facilitate the automated generation, dual transformation, and visual rendering of complex dynamical phase portraits.
Appendix. Catalog of One-Cycle Chord Diagrams
This section contains a comprehensive graphical atlas of representative one-cycle signed chord diagrams generated for . New figures can be inserted into the template structures below.
From the computational code to the drawing code
For computations a one-cycle chord diagram with chords is stored as a word in which every label occurs exactly twice (the two ends of chord ), together with a sign for each chord. The word is normalised by first occurrence, so the labels first appear in the order . Orientable diagrams (, ) have all ; non-orientable ones (, ) have at least one .
The drawing code used by the macro \cd is a list of triples a/b/c, where are the cyclic numbers of the ends of a chord on the circle with points, and c is its colour. The conversion is:
Number the ends cyclically in the order of the word; position is drawn at the polar angle , i.e. clockwise starting just after the top point.
For each label let be the two positions with .
Put (blue) if and (red) if .
Output the triples for separated by commas. Because of the normalisation , no extra sorting is needed.
The diagram is then inserted as \cd[s]{n}{list}, with and scale (we use 0.62–0.65). For example, the word (all signs ) gives \cd[0.62]{8}{1/3/B,2/4/B,5/7/B,6/8/B}. The empty diagram of the sphere is drawn as \cd[0.62]{2}{}.
Order, numbering, duality
Within each genus the diagrams are the representatives of the equivalence classes under rotation, reflection and relabelling, one per class: the representative is the lexicographically smallest normalised word in its class, and the classes are listed in increasing order of this word. The number under a diagram is the counter cdn, reset at the start of each genus and continued across figures if the list of one genus does not fit into one figure.
The dual diagram is obtained by traversing the unique face of the diagram: starting at an arc of the circle, we move along the circle to the next chord end, cross the chord to its other end, and continue along the circle in the same direction if the chord is untwisted and in the opposite direction if it is twisted, until we return to the starting arc. The sequence of chords crossed along the way is the word of the dual diagram. The dual chord is untwisted if the two crossings of chord go in opposite directions (from its smaller end to its larger one and back), and twisted if both go the same way. The dual is then reduced to its canonical form and found in the same list; a diagram is self-dual if it coincides with its own dual, otherwise it forms a dual pair. After each list we state the numbers of the self-dual diagrams and of the dual pairs.
Orientable Surfaces
Figure 1. One-cycle chord diagrams for the sphere (, ).
Figure 2. One-cycle chord diagrams for the torus (, ).
Figure 3. One-cycle chord diagrams for genus (). 4 diagrams in total: 4 self-dual, 0 dual pairs. Self-dual: 1, 2, 3, 4.
Figure 4. One-cycle chord diagrams for genus (), diagrams 1–80 of 82.
Duality, . 82 diagrams in total: 30 self-dual, 26 dual pairs. Self-dual: 1, 4, 5, 6, 9, 10, 13, 18, 20, 22, 24, 29, 31, 32, 37, 42, 46, 47, 50, 53, 56, 57, 58, 62, 65, 68, 70, 75, 77, 82. Dual pairs: (2,8), (3,11), (7,12), (14,41), (15,54), (16,35), (17,33), (19,44), , , , , , , , , , , , , , , , , , .
Non-orientable Surfaces
Figure 5. One-cycle chord diagrams for the projective plane (, ) and the Klein bottle (, ).
Duality, . 1 diagram in total: 1 self-dual, 0 dual pairs. Self-dual: 1.
Duality, . 2 diagrams in total: 2 self-dual, 0 dual pairs. Self-dual: 2, 3.
Figure 6. One-cycle chord diagrams for non-orientable genus ().
Duality, . 8 diagrams in total: 4 self-dual, 2 dual pairs. Self-dual: 1, 4, 6, 7. Dual pairs: (2,5), (3,8).

Figure 7. One-cycle chord diagrams for non-orientable genus ().
Duality, . 47 diagrams in total: 23 self-dual, 12 dual pairs. Self-dual: 1, 2, 3, 6, 9, 10, 13, 19, 22, 23, 24, 25, 26, 27, 30, 31, 35, 36, 38, 41, 42, 45, 47. Dual pairs: (4,20), (5,21), (7,29), (8,28), (11,39), (12,40), (14,44), (15,33), (16,37), (17,46), (18,43), (32,34).
Figure 8. One-cycle chord diagrams for non-orientable genus (), diagrams 1–80 of 473.
Duality, . 473 diagrams in total: 59 self-dual, 207 dual pairs. Self-dual: 1, 3, 6, 9, 16, 17, 18, 20, 22, 24, 34, 43, 68, 76, 86, 101, 102, 103, 117, 126, 140, 142, 165, 178, 184, 244, 259, 261, 263, 273, 274, 277, 278, 284, 288, 297, 298, 306, 312, 314, 318, 325, 330, 342, 343, 355, 371, 374, 385, 423, 440, 441, 443, 445, 451, 453, 458, 462, 471. Dual pairs: (2,19), (4,23), (5,13), (7,15), (8,12), (10,14), (11,21), (25,48), (26,253), (27,30), (28,354), (29,84), (31,257), (32,55), (33,247), (35,345), (36,356), (37,66), (38,351), (39,79), (40,270), (41,46), (42,255), (44,119), (45,349), (47,96), (49,262), (50,266), (51,339), (52,58), (53,192), (54,93), (56,361), (57,250), (59,258), (60,113), (61,99), (62,334), (63,176), (64,265), (65,73), (67,90), (69,326), (70,72), (71,338), (74,264), (75,271), (77,359), (78,83), (80,353), (81,197), (82,110), (85,344), (87,321), (88,337), (89,341), (91,114), (92,313), (94,347), (95,331), (97,243), (98,185), (100,332), (104,249), (105,252), (106,360), (107,336), (108,120), (109,183), (111,180), (112,172), (115,267), (116,217), (118,209), (121,246), (122,346), (123,168), (124,362), (125,438), (127,467), (128,166), (129,389), (130,146), (131,388), (132,418), (133,469), (134,218), (135,416), (136,431), (137,204), (138,398), (139,282), (141,406), (143,439), (144,289),
Figure 9. One-cycle chord diagrams for non-orientable genus (), diagrams 81–160 of 473.
(145,152), (147,468), (148,190), (149,234), (150,473), (151,390), (153,162), (154,295), (155,432), (156,304), (157,231), (158,219), (159,430), (160,206), (161,200), (163,414), (164,235), (167,329), (169,179), (170,300), (171,316), (173,201), (174,223), (175,335), (177,269), (181,203), (182,268), (186,357), (187,328), (188,444), (189,460), (191,461), (193,310), (194,240), (195,377), (196,420), (198,205), (199,375), (202,409), (207,411), (208,340), (210,256), (211,323), (212,283), (213,392), (214,424), (215,293), (216,248), (220,412), (221,454), (222,449), (224,459), (225,447), (226,450), (227,369), (228,383), (229,442), (230,463), (232,287), (233,429), (236,413), (237,446), (238,457), (239,241), (242,320), (245,260), (251,352), (254,350), (272,333), (275,370), (276,372), (279,455), (280,452), (281,415), (285,291), (286,394), (290,381), (292,400), (294,427), (296,305), (299,303), (301,464), (302,425), (307,435), (308,470), (309,405), (311,472), (315,317), (319,324), (322,327), (348,358), (363,387), (364,386), (365,456), (366,448), (367,373), (368,376), (378,379), (380,410), (382,408), (384,421), (391,407), (393,422), (395,399), (396,417), (397,401), (402,437), (403,465), (404,466), (419,428), (426,434), (433,436).
Figure 10. One-cycle chord diagrams for non-orientable genus (), diagrams 161–240 of 473.
Figure 11. One-cycle chord diagrams for non-orientable genus (), diagrams 241–320 of 473.
Figure 12. One-cycle chord diagrams for non-orientable genus (), diagrams 321–400 of 473.
Figure 13. One-cycle chord diagrams for non-orientable genus (), diagrams 401–473 of 473.
Tool use declaration
The enumeration and duality computations were performed with Python programs one_cycle_chord_diagrams.py and general_codes.py Prishlyak [43]; the figures were typeset with LaTeX and TikZ.
Generative AI (Claude, Anthropic) was used as follows: (i) writing and debugging parts of the Python code, including the scripts that generate the catalog of chord diagrams in the Appendix (conversion from the computational code to the drawing code, canonical forms, dual and self-dual diagrams); (ii) generating the LaTeX/TikZ source of the Appendix figures from the program output; (iii) drafting and editing the English text of the description of the algorithms and of some passages of the Introduction and Conclusion, and suggesting arXiv subject classes.
All mathematical statements, definitions and results come from the authors and from the cited literature. The authors checked the program output independently (for example, by verifying that taking the dual twice returns the original diagram and that the counts of diagrams are consistent with the known ones), reviewed and edited all AI-generated text and code, and take full responsibility for the content of the paper.
References
- [1]N. M. Adrianov. An analog of the Harer–Zagier formula for unicellular bicolored maps. Funct. Anal. Appl., 31(3):149–155, 1997. URL https://doi.org/10.1007/BF02465782.
- [2]S. Bilun and A. Prishlyak. The closed Morse 1-forms on closed surfaces. Visn., Mat. Mekh., Kyiv. Univ. Im. Tarasa Shevchenka, 2002(8):77–81, 2002.
- [4]M. Borodzik, A. Nemethi, and A. Ranicki. Morse theory for manifolds with boundary. Algebraic & Geometric Topology, 16(2):971–1023, April 2016. ISSN 1472-2747. URL https://doi.org/10.2140/agt.2016.16.971.
- [5]R. Cori and M. Marcus. Counting non-isomorphic chord diagrams. Theoret. Comput. Sci., 204(1–2):55–73, 1998. URL https://doi.org/10.1016/S0304-3975(98)00031–0.
- [6]J. Harer and D. Zagier. The Euler characteristic of the moduli space of curves. Invent. Math., 85(3):457–485, 1986. URL https://doi.org/10.1007/BF01390325.
- [7]Ch. Hatamian and A. Prishlyak. Heegaard diagrams and optimal morse flows on non-orientable 3-manifolds of genus 1 and genus 2. Proc. Int. Geom. Cent., 13(3):33–48, 2020. ISSN 2072-9812. URL https://doi.org/10.15673/tmgc.v13i3.1779.
- [8]B. Hladysh and A. Prishlyak. Simple Morse functions on an oriented surface with boundary. Zurnal matematiceskoj fiziki, analiza, geometrii, 15(3):354–368, June 2019a. ISSN 1817-5805. URL https://doi.org/10.15407/mag15.03.354.
- [10]B. I. Hladysh and A. O. Prishlyak. Functions with nondegenerate critical points on the boundary of the surface. Ukrainian Mathematical Journal, 68(1):29–40, jun 2016. URL https://doi.org/10.1007/s11253–016–1206–5.
- [11]B.I. Hladysh and A.O. Prishlyak. Topology of functions with isolated critical points on the boundary of a 2-dimensional manifold. SIGMA. Symmetry, Integrability and Geometry: Methods and Applications, 13:050, 2017. URL https://doi.org/10.3842/SIGMA.2017.050.
- [14]O. A. Kadubovskyi. The number of topologically non-equivalent minimal functions on closed surfaces. Trans. Inst. Math. Natl. Acad. Sci. Ukraine, 12(6):105–145, 2015. URL https://trim.imath.kiev.ua/index.php/trim/article/view/135.
- [15]O. A. Kadubovskyi and Ye. Yu. Sypchuk. On the number of non-isomorphic 2-color chord O-diagrams of the genus two that have one grey (or black) face. Zb. nauk. prats fiz.-mat. fakultetu DDPU, 10:21–32, 2020. URL http://dspace.ddpu.edu.ua/jspui/handle/123456789/301.
- [17]A. Khruzin. Enumeration of chord diagrams. arXiv preprint math/0008209, 2000. URL https://doi.org/10.48550/arXiv.math/0008209.
- [18]V. Kibkalo and T. Yokoyama. Topological characterizations of Morse-Smale flows on surfaces and generic non-Morse-Smale flows. Discrete and Continuous Dynamical Systems, 42(10):47–87, 2022. ISSN 1553-5231. URL https://doi.org/10.3934/dcds.c2022027.
- [19]E. Krasko. Counting unlabelled chord diagrams of maximal genus. arXiv preprint arXiv:1709.00796, 2017. URL https://doi.org/10.48550/arXiv.1709.00796.
- [20]A. Kravchenko and S. Maksymenko. Automorphisms of Kronrod-Reeb graphs of Morse functions on 2-sphere. Proceedings of the International Geometry Center, 11(4):72–79, April 2019. ISSN 2072-9812. URL https://doi.org/10.15673/tmgc.v11i4.1306.
- [21]A.S. Kronrod. Functions of two variables. Russian Mathematical Surveys, 5:24–134, 1950.
- [22]Z. Kybalko, A. Prishlyak, and R. Shchurko. Trajectory equivalence of optimal Morse flows on closed surfaces. Proc. Int. Geom. Cent., 11(1):12–26, 2018. ISSN 2072-9812. URL https://doi.org/10.15673/tmgc.v11i1.916.
- [23]A. A. Oshemkov and V. V. Sharko. Classification of Morse-Smale flows on two-dimensional manifolds. Matem. Sbornik, 189(8):93–140, 1998.DOI
- [24]J. Palis and W. de Melo. Geometric theory of dynamical systems. An introduction. Springer-Verlag, New York-Berlin,, 1982. xii+198 p.
- [25]M. M. Peixoto. On structural stability. Annals of Mathematics, 69(1):199 – 222, 1959. URL https://doi.org/10.2307/1970100.
- [26]M.M. Peixoto. On the classification of flows of 2-manifolds. Dynamical Systems (Proc. Symp. Univ. of Bahia, Salvador, Brasil, 1971), pages 389–419, 1973.
- [27]A. Prishlyak. Gradient like morse-smale dynamical systems on 4-manifolds. Mat. studii, 16(1):99–104, 2001a.
- [28]A. Prishlyak. Topological equivalence of Morse-Smale vector fields with beh2 on three-dimensional manifolds. Ukrainian Mathematical Journal, 54(4):603–612, 2002a.
- [30]A. Prishlyak and L. Di Beo. Flows with minimal number of singularities in the Boy’s surface. Proceedings of the International Geometry Center, 15(1):32–49, 2022. URL https://doi.org/10.15673/tmgc.v15i1.2225.
- [31]A. Prishlyak and M. Loseva. Topology of optimal flows with collective dynamics on closed orientable surfaces. Proc. Int. Geom. Cent., 13(2):50–67, 2020. ISSN 2072-9812. URL https://doi.org/10.15673/tmgc.v13i2.1731.
- [33]A. Prishlyak and I. Ovtsynov. The structure of Morse flows and codimension one gradient flows on the sphere with holes. Memoirs on Differential Equations and Mathematical Physics, 97(1), 2026.
- [34]A. Prishlyak and A. Prus. Three-color graph of the Morse flow on a compact surface with boundary. Journal of Mathematical Sciences, 249(4):661–672, 2020. URL https://doi.org/10.1007/s10958-020-04964-1.
- [35]A. Prishlyak and E. Vyatchaninova. Minimal m-handle decomposition on three-dimensional handlebodies. Bul. Acad. S. Repub. Mold. Mat., 2-3(72-73):106–110, 2013.
- [36]A. Prishlyak, A. Prus, and S. Huraka. Flows with collective dynamics on a sphere. Proc. Int. Geom. Cent., 14(1):61–80, 2021. ISSN 2072-9812. URL https://doi.org/10.15673/tmgc.v14i1.1902.
- [38]A. O. Prishlyak. On topologically equivalent Morse functions on 3-manifold. Methods Funct. Anal. Topology, 5(3):49–53, 1999a. ISSN 1029-3531. URL http://mfat.imath.kiev.ua/article/?id=103.
- [40]A. O. Prishlyak. Morse–Smale vector fields without closed trajectories on 3 -manifolds. Mathematical Notes, 71(1):230–235, 2002b. URL https://doi.org/10.1023/A:1013963315626.
- [41]A. O. Prishlyak, S. V. Bilun, and A. A. Prus. Morse flows with fixed points on the boundary of 3-manifolds. Journal of Mathematical Sciences, 274(6):881–897, August 2023a. ISSN 1573-8795. URL https://doi.org/10.1007/s10958-023-06651-3.
- [42]A. O. Prishlyak and D. M. Skochko. F-atoms of completeness 4 of morse functions on two-dimensional closed oriented manifolds. Proc. Intern. Geom. Center, 9(1):17–30, jun 2016. URL https://doi.org/10.15673/tmgc.v9i1.88.
- [43]A. Prishlyak. Codes of rotation systems of a cell-embedded graph in an oriented surface. Zenodo, 22298943:1–10, 2026a. URL https://doi.org/10.5281/zenodo.22298943.
- [45]A. Prishlyak and K. Butok. Topological structure of simple Hamiltonian flows on the projective plane and the Klein bottle. Bulletin of Taras Shevchenko National University of Kyiv. Physics and Mathematics, 80(2), 2025. URL https://doi.org/10.17721/1812-5409.2025/2.8.
- [47]A. Prishlyak, M. Loseva, and B. Hladysh. Topological structure of functions with isolated critical points on a 3-manifold. Proceedings of the International Geometry Center, 16(3):231–243, November 2023b. ISSN 2072-9812. URL https://doi.org/10.15673/pigc.v16i3.2512.
- [48]A.O. Prishlyak. On graphs embedded in a surface. Russian Mathematical Surveys, 52(4):844, 1997. URL https://doi.org/10.1070/RM1997v052n04ABEH002074.
- [49]A.O. Prishlyak. Conjugacy of Morse functions on surfaces with values on a straight line and circle. Ukrainian Mathematical Journal, 52(10):1623–1627, 2000. URL https://doi.org/10.1023/A:1010461319703.
- [50]A.O. Prishlyak. Conjugacy of Morse functions on 4-manifolds. Russian Mathematical Surveys, 56(1):170–171, 2001b. URL https://doi.org/10.1070/RM2001v056n01ABEH000370.
- [51]A.O. Prishlyak. Topological equivalence of smooth functions with isolated critical points on a closed surface. Topology and its Applications, 119(3):257–267, 2002c. URL https://doi.org/10.1016/S0166-8641(01)00077-3.
- [52]A.O. Prishlyak. Topological classification of m-fields on two-and three-dimensional manifolds with boundary. Ukrainian Mathematical Journal, 55(6):966–973, 2003a.DOI
- [53]A.O. Prishlyak. Regular functions on closed three-dimensional manifolds. Dopov. Nats. Akad. Nauk Ukr. Mat. Pryrodozn. Tekh. Nauki, 8:21–24, 2003b.
- [54]A.O. Prishlyak. Complete topological invariants of Morse–Smale flows and handle decompositions of 3-manifolds. Fundamentalnaya i Prikladnaya Matematika, 11(4):185–196, 2005.
- [55]A.O. Prishlyak. Vektornye polya Morsa–Smeila s konechnym chislom osobykh traektorij na trekhmernykh mnogoobraziyakh. Dopovidi NAN Ukrainy, 6:43–47, 1998.
- [58]A.O. Prishlyak and M.B. Loseva. Optimal Morse–Smale flows with singularities on the boundary of a surface. J. Math. Sci., New York, 243:279–286, 2019. ISSN 1072-3744. URL https://doi.org/10.1007/s10958-019-04539-9.
- [59]A.O. Prishlyak and K.I. Mischenko. Classification of noncompact surfaces with boundary. Methods of Functional Analysis and Topology, 13(01):62–66, 2007.
- [60]A. Prishlyak and S. Stas. Topological structure of simple pro-Hamiltonian flows on the Möbius strip. Ukrainian Mathematical Journal, 77(9):1254–1260, November 2025. ISSN 1573-9376. URL https://doi.org/10.1007/s11253-025-02519-8.
- [62]G. Reeb. Sur les points singuliers d’une forme de Pfaff complètement intégrable ou d’une fonction numérique. C.R.A.S. Paris, 222:847–849, 1946.
- [63]S. Smale. Morse inequalities for dynamical systems. Bull. Amer. Math. Soc., 66:46–49, 1960.
- [64]S. Smale. On gradient dynamical systems. Ann. of Math., 74:199–206, 1961.
- [65]A. Stoimenow. On the number of chord diagrams. Discrete Math., 218(1–3):209–233, 2000. URL https://doi.org/10.1016/S0012-365X(99)00347-7.
- [66]V. Tereshchenko, O.Pryshliak, and M.Osiponok. The construction of efficient algorithms for addressing certain computational geometry problems using Reeb graphs. Cybernetics and Systems Analysis, 61(6):45–56, 2025.DOI
- [67]V. Tereshchenko and O. Prishlyak. Reeb graph of the height function on a planar polygon. Bulletin of Taras Shevchenko National University of Kyiv. Series: Physics and Mathematics, (2):54–58, 2024. ISSN 2218-2055. URL https://doi.org/10.17721/1812-5409.2024/2.9.











