Time complexity to check if an edge exists between two vertices would be ___________
(a) O(V*V)
(b) O(V+E)
(c) O(1)
(d) O(E)
My doubt is from Incidence Matrix and Graph Structured Stack topic in portion Graph of Data Structures & Algorithms I
This question was posed to me during an online interview.