Graph Data Structure
Graph Data Structure
Formally, a graph is a pair of sets (V, E), where V is the set of vertices
and E is the set of edges, connecting the pairs of vertices. Take a look at
the following graph −
V = {a, b, c, d, e}
Computer Science − Graph theory is used for the study of algorithms. For
example,
o Kruskal's Algorithm
o Prim's Algorithm
o Dijkstra's Algorithm