I had the help of an LLM, but I learned about the NetworkX library in the process and generated nice output with Matplotlib.
The first solution didn't scale, but I reimplemented with BFS.
I had the help of an LLM, but I learned about the NetworkX library in the process and generated nice output with Matplotlib.
The first solution didn't scale, but I reimplemented with BFS.