Qusetion: You are given a boolean matrix A[0..n - 1, 0..n - 1], where n > 3, which issupposed to be the adjacency matrix of a graph modeling a network with oneof these topologies. Your task is to determine which of these three topologies,if any, the matrix represents. Design a brute-force algorithm for this task andindicate its time efficiency class.