2079 11

BIT201 ยท 2079 ยท 5 marks

Explain adjacency matrix representation of graphs with example.

Explain adjacency matrix representation of graphs with example. [5]

Data Structures and AlgorithmsChapter 9: Graphs and Graph AlgorithmsGraph representation using adjacency matrix

An adjacency matrix is a 2D square matrix used to represent a graph. For a graph with n vertices, the adjacency matrix is an n ร— n matrix (usually denoted A), where each entry A[i][j] indicates whether there is an edge between vertex i and vertex j. --- Condition Entry Value ------ Edge exists be...