Don't assign colors if there are no vertices in the graph