Open In App

Adjacency matrix meaning and definition in DSA

An adjacency matrix is a square matrix of N x N size where N is the number of nodes in the graph and it is used to represent the connections between the edges of a graph.

Graph representation of undirected graph to Adjacency Matrix

Characteristics of the adjacency matrix are:

How to build an Adjacency Matrix:

It is very easy and simple to construct an adjacency matrix for a graph there are certain steps given below that you need to follow:

Applications of the Adjacency Matrix:

Advantages of using Adjacency Matrix:

Disadvantages of using Adjacency Matrix:

What else can you read?

Article Tags :