Explain methods to represent a graph.Graph is a non-linear data STRUCTURE that is same as the MATHEMATICAL (DISCRETE mathematics) concept ofgraphs. It is a collection of nodes (also called as vertices) and EDGES that connect these vertices. Graphs are used to represent ARBITRARY relationship among objects.