advent-of-code-2023/day25
Nick Krichevsky a84f58ee16 Add SVG of sample input for day 25 2023-12-29 21:28:18 -05:00
..
README.md Add SVG of sample input for day 25 2023-12-29 21:28:18 -05:00
main.go Add day 25 solution 2023-12-29 21:08:20 -05:00
sample.svg Add SVG of sample input for day 25 2023-12-29 21:28:18 -05:00

README.md

This one is a bit weird, in that it uses your eyes to solve it. The solution comes in two parts

go run main.go inputfile dot

will get you a DOT representation of the graph. If you pipe this into neato, you can visually see the separation.

You then input the nodes to "cut" into the cut subcommand. For instance, this is how you would execute the sample

go run main.go inputfile cut htj,pcc dlk,pjj bbg,htb

Here is an example SVG of the sample input, to demonstrate how you would pick out "htj-pcc", "dlk-pjj", "bbg-htb"

Graph of AoC Sample 1 Day 25