Only write an edge once.
Propagate the solution.
Color the thing.
Add random-coloring.png.