Graph Representation with adjacency matrix and adjacency List

By Prof. Fazal Rehman Shamil
Last modified on March 3rd, 2022

How to Represent Graph  with adjacency matrix and adjacency List

Graph representation with adjacency matrix, adjacency list in data structures
Graph representation with adjacency matrix, adjacency list in data structures

Adjacency Matrix

complexity of Adjacency Matrix

The complexity of Adjacency Matrix is O(V2).

Adjacency List

 

 

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.