Dominating Set and Vertex Coloring
either/both of the two black neighbors, the color of the node is changed from yellow
to black. Otherwise, the color is changed from yellow to gray.
two black neighbors, the color of the node is changed from black to gray.