A Graph is a diagram showing data, in particular one showing relationships between two or more quantities, measurements or indicative numbers that may or may not have a specific mathematical formula relating them to each other. It is a pictorial representation that represents data or…