Examveda

On which of the following statements does the time complexity of checking if an edge exists between two particular vertices is not, depends?

A. Depends on the number of edges

B. Depends on the number of vertices

C. Is independent of both the number of edges and vertices

D. It depends on both the number of edges and vertices

Answer: Option C


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.