An important dietary source of physiologically active compounds, coffee also contains phenolic acids, diterpenes, and caffeine. According to a certain study, some coffee secondary metabolites may advantageously modify a number of anti-cancer defense systems. This research looked at a few coffee chemical structures in terms of edge locating numbers or edge metric size to better understand the mechanics of coffee molecules. Additionally, this research includes graph theoretical properties of coffee chemical structures. The chemicals found in coffee, such as caffeine, diterpene or cafestol, kahweol, chlorogenic, caffeic, gallotannins, and ellagitannins, are especially examined in these publications.