It is a non-linear data structure that consist of nodes that are connected with each other by edges. Graphs, in a code are usually represented by adjacency list or edge list, depending on what type of graph you are using.

Types of Graphs
There are a few types of graphs