TWOHAMG(1)
π TWOHAMG π
okay bestie, sit down, hydrate, because we're about to talk about twohamg β it's the manual page for twohamg version 2.9.3 and it is so much cooler than it sounds. graph theory girlies rise π«Ά
β¨ SYNOPSIS β¨
twohamg [-sgvq] [-L#] [infile [outfile]]
yes it's short. yes it goes hard. no notes. π
πΈ DESCRIPTION πΈ
Partition quartic graphs into two hamiltonian cycles.
...and then it just outputs the ones that can't be partitioned. iconic behaviour honestly, it's giving "I only speak up when something's wrong" main character energy π
That's it. That's the whole job. Split the graph into two hamiltonian cycles, and if that's impossible, bestie gets a write-out. no cap.
π OPTIONS π
-sβ force output to sparse6 format β¨-gβ force output to graph6 format β¨
ngl, if you give it neither-snor-g, the output format is decided by the header, or β if there's no header at all β by the format of the first input graph. also see-S. π
π¦ and listen: the output file will have a header if and only if the input file does. if and only if!! it's matching energy, it's twin flames, it's literally mirrored.
-pβ read a cubic graph and use its prism. Vertexiof the input becomes vertices2*i,2*i+1in the prism. lowkey a glow-up transformation fr fr β¨-xβ test for decompositions using each 2-path π-Xβ as-xbut only output if two 2-paths are missed at some vertex. yes it's the louder sibling. it's the same but it only speaks up when two 2-paths get missed at some vertex π-yβ test for decompositions using each non-triangular 3-path π-t#β with-xand-X, consider only paths with center#. with-y, consider only paths starting at#. so basically#is the VIP of your path selection, iykyk π-Yβ with-p, only consider paths whose central edge is vertical π-vβ give a partition for those graphs which have one, and a message for those which don't. and with-x, it lists the exceptional 2-paths too. it's chatty! we love a talkative queen π-L#β limit to1000*#iterations; write with message if timeout. and heads up: graphs that time out are written to the output. so if it runs out of patience, it still leaves a note. respectful, honestly. π-qβ suppress auxiliary information. for when you want the β¨bare minimumβ¨ and no side commentary. (rude but valid.)
π quick vibe check:-x,-X,-y,-t#, and-Yall interact with each other, so read the little bullet notes before you mash flags together. fr fr. don't just yeet them in there.
twohamg 2.9.3 Β· September 2026 β mwah, that's the whole page bestie, go partition some quartic graphs and slay π β¨π¦π
π¦ where this page comes from
- fedora 43: nauty 2.9.3-3.fc43 Β· Apache-2.0 AND LicenseRef-Fedora-Public-Domain AND Knuth-CTAN AND GPL-1.0-or-later
- fedora 44: nauty 2.9.3-4.fc44 Β· Apache-2.0 AND LicenseRef-Fedora-Public-Domain AND Knuth-CTAN AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms