1 Like
Yes as I know answer will be it depends on both number of edges and vertices.
I think there is some error in answer.
Please try contacting your TA or support for help
To check if there is an edge between to vertices i and j, it is enough to see if the value of A[i][j] is 1 or 0, here A is the adjacency matrix.
1 Like