StreakPeaked· Practice

ExamsGATETechnical

Which of the properties hold for the adjacency matrix A of a simple undirected unweighted graph having n vertices?

  1. The diagonal entries of A² are the degrees of the vertices of the graph.
  2. If the graph is connected, then none of the entries of A^(n−1) + Iₙ can be zero.
  3. If the sum of all the elements of A is at most 2(n−1), then the graph must be acyclic.
  4. If there is at least a 1 in each of A's rows and columns, then the graph must be connected.

Correct answer: The diagonal entries of A² are the degrees of the vertices of the graph.

Solution

The diagonal entries of A² represent the sum of the products of corresponding entries in the rows and columns of the adjacency matrix, which counts the number of edges connected to each vertex, thus giving the degree of each vertex.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →