Computer Science, asked by shauryas7538, 4 days ago

What is Adjacency Matrix and Adjacency List in Graph? Explain with Example.

Answers

Answered by parashardolly42
0

Answer:

The adjacency matrix, sometimes also called the connection matrix, of a simple labeled graph is a matrix with rows and columns labeled by graph vertices, with a 1 or 0 in position according to whether and. are adjacent or not. For a simple graph with no self-loops, the adjacency matrix must have 0s on the diagonal.

Similar questions