Twin-width is a graph-theoretic invariant defined in terms of contractions on trigraphs.
This repository provides an exact and heuristic solver for the twin-width problem.
- A 64-bit Linux operating system.
- A 9.4.0 or higher version of
G++
compiler.
Both heuristic
and exact
solvers are built within a single C++
file that reads a twin-width instance from stdin and print the solution to stdout.
For the input and output format, please refer to the PACE challenge web page.
To compile and run, use the following commands:
g++ -o heuristic -static heuristic.cpp
./heuristic
g++ -o exact -static exact.cpp
./exact