We prove the chromatic uniqueness of some families of graphs by using
a special function which is the difference between the size of the lin
e graph and the number of triangles of a given graph. Moreover, this f
unction can be helpful in finding graphs chromatically equivalent to a
given graph. We give a few examples showing how to generate such clas
ses of graphs by using this function.