Examveda

The time complexity to calculate the number of edges in a graph whose information in stored in form of an adjacency matrix is . . . . . . . .

A. O(V)

B. O(E2)

C. O(E)

D. O(V2)

Answer: Option D


This Question Belongs to Data Structure >> Graphs

Join The Discussion

Related Questions on Graphs

What is a cycle in a graph?

A. A path that starts and ends at the same vertex with no other repetitions.

B. A path that includes all vertices exactly once.

C. A path with no edges.

D. A complete traversal of all vertices.