Let G = (V, E) be an undirected unweighted connected graph. The diameter of G is defined as: diam(G) = u,v V \the length of shortest path between u and v\ Let M be the adjacency matrix of G. Define graph G2 on the same set of vertices with adjacency matrix N, where Nij = cases 1 & if Mij > 0 or Pij > 0, where P = M2 \\ 0 & otherwise cases Which one of the following statements is true?
Topic-wise GATE CS PYQs with verified steps
