Application of graph theory to the theory of chromaticity of polymethine dyes