Understanding Graphs, Recursion, and Depth First Search (DFS)
Introduction to Graphs
A graph consists of :
Nodes (Vertices) → entities
Edges → connections between nodes
Example :
Students in a classroom and their friendships.
1 — 2
| |
3 — 4
Here :
Node
srinivastechblog.hashnode.dev10 min read