Q. if a graph has 5 vertices an 7 edges when write the size of its adjency matyrix
Identify vertices: Identify the number of vertices in the graph to determine the dimensions of the adjacency matrix. Since the graph has 5 vertices, the adjacency matrix will be a 5×5 matrix because the adjacency matrix is always a square matrix with dimensions equal to the number of vertices.
Calculate matrix size: Calculate the size of the adjacency matrix by multiplying the number of rows by the number of columns. Since it's a 5×5 matrix, the size is 5×5=25.