Threshold-Coloring and Unit-Cube Contact Representation of Graphs