Types of graphs


A graph is a fairly advanced data structure used to model complex relationships. Its logical representation may seem like a simple network of nodes and edges, but the underlying data it represents gives this structure meaning. Graphs can be drawn in many ways, but some broad categories of graphs are most commonly used. These categories of graphs can model a large subset of all possible data relationships. This section will learn more about these types of graphs and some of their use cases.

All the types mentioned are not mutually exclusive. This means a graph can simultaneously be of many of the following types.

Undirected graph

An undirected graph is where all the edges in the graph are undirected. Undirected graphs represent relationships between data items that hold both ways, like the distance between cities, the social connection between people, etc.

An undirected graph has bidirectional relationship

Liking the course? Check our discounted plans to continue learning.