0 11

BIT152 ยท 0 ยท 5 marks

How can we represent a graph using Adjacency Matrix? Explain.

How can we represent a graph using Adjacency Matrix? Explain. [5]

Discrete StructureChapter 8: Graph Theory FundamentalsGraph representation using adjacency matrix

An Adjacency Matrix is a 2D array (matrix) used to represent a graph. For a graph with n vertices, the adjacency matrix is an n ร— n matrix where each cell indicates whether a pair of vertices is connected by an edge. --- Let A be the adjacency matrix of a graph with vertices V = {vโ‚, vโ‚‚, ..., vโ‚™}...