CUBHAMG(1)
π¦ CUBHAMG β the manual page for cubhamg 2.9.3, bestie edition
okay so. sit down, hydrate, because we're about to talk about finding hamiltonian cycles in sub-cubic graphs and honestly? it's giving main character energy. this is the manual page for cubhamg version 2.9.3 and i need you to be so fr with me rn.
β¨ SYNOPSIS β¨
cubhamg [-#] [-v|-V] [-n#-#|-y#-#|-i|-I|-o|-O|-x|-e|-E|-c] [-b|-t]
[infile [outfile]]
π DESCRIPTION π
cubhamg is literally here to find hamiltonian cycles in sub-cubic graphs. that's the whole vibe.
graphs that are not hamiltonian, or that are not solved, get written out. slay.
infileis the name of the input file in graph6/sparse6 formatoutfileis the name of the output file in the same format
stdin and stdout are the defaults for infile and outfile. so if you just pipe stuff in and let it fly, that's valid. π«Ά
the output file will have a header if and only if the input file does. no cap. matching energy only.
Optional switches: (and bestie, there are a LOT of them, we're going through every single one)
π OPTIONS π
-#β a parameter useful for tuning, default100. just vibes-based tuning, iykyk.-vβ report nonhamiltonian graphs and noncubic graphs. (with-c, give count for each input)-Vβ .. in addition give a cycle for the hamiltonian ones. (with-clist all the cycles in addition to the count) β¨-n#-#β if the two numbers arevandi, then thei-th edge out of vertexvis required to be not in the cycle. it must be thati=1..3andv=0..n-1. not me forcing edges out of the cycle π-y#-#β if the two numbers arevandi, then thei-th edge out of vertexvis required to be in the cycle. it must be thati=1..3andv=0..n-1. forcing it IN. iconic.
you can use any number of-n/-yswitches to force edges. out of range first arguments are ignored. if-yand-nspecify the same edge,-ywins. periodt. π
-iβ test + property: for each edgee, there is a hamiltonian cycle usinge.-Iβ test ++ property: for each pair of edgese,e', there is a hamiltonian cycle which uses botheande'.-oβ test - property: for each edgee, there is a hamiltonian cycle avoidinge-Oβ test -- property: for each pair of nonadjacent edgese,e's, there is a hamiltonian cycle avoiding both. note that this is trivial unless the girth is at least5.-xβ test +- property: for each pair of edgese,e', there is a hamiltonian cycle which usesebut avoidse'.-eβ test 3/4 property: for each edgee, at least3of the4paths of length3passing throughelie on hamiltonian cycles.-Eβ test 3/4+ property: for each edgeefailing the 3/4 property, all three ways of joiningeto the rest of the graph are hamiltonian avoidinge.-T#β specify a timeout, being a limit on how many search tree nodes are made. if the timeout occurs, the graph is written to the output as if it is nonhamiltonian. π-R#β specify the number of repeat attempts for each stage.-Fβ analyze covering paths from2or4vertices of degree2.-bβ require biconnectivity-tβ require triconnectivity (note: quadratic algorithm)-cβ count hamiltonian cycles, output count for each graph.-V,-nand-ycan also be used. no graphs are output. π₯
πΈ the fine print πΈ
-y,-n,-#,-Rand-Tare ignored for-i,-I,-x,-o,-e,-E,-F. like, don't even bother, they're not coming to the party.
and that's the whole thing bestie, we ate and left no crumbs. this was cubhamg 2.9.3, from the September 2026 era, a genuine user-commands classic. go find some hamiltonian cycles, you've got this πβ¨ππ¦
π¦ 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