Open In App

Graph definition & meaning in DSA

A Graph is a non-linear data structure consisting of vertices and edges where two vertices are connected by an edge.

Example of Graph

Properties of a Graph:

Types of Graph:

Based on the directions of edges, graphs can be divided into two categories:



Based on the weights of edges, a graph can also be classified into two categories:

Application of Graph:

To see more applications of graphs, refer to this article.



Advantages of Graph:

To see more advantages of graph, refer to this article.

Disadvantages of Graph:

To learn more about disadvantages of graph, refer to this article.

What else can you read?

Article Tags :