

A graph is an ordered pair G = (V, E) comprising a set V of vertices or nodes and a collection of pairs of vertices from V called edges of the graph.

For example for above graph,



V = { 1, 2, 3, 4, 5, 6 }

E = { (1, 4), (1, 6), (2, 6), (4, 5), (5, 6) }





In this post, we have list out commonly asked interview questions that uses graph data structure –





Thank you for being with us. 🙂

Sharing is caring: Tweet





