Overview - Graph Terminology Vertices Edges Directed Undirected Weighted
What is it?
A graph is a way to show connections between things. The things are called vertices or nodes. The connections between them are called edges. These edges can have directions or weights to show how they relate.
Why it matters
Graphs help us understand and solve problems where things connect, like social networks, maps, or websites. Without graphs, it would be hard to find paths, relationships, or optimize routes in many real-world systems.
Where it fits
Before learning graphs, you should know basic data structures like arrays and lists. After this, you can learn graph algorithms like searching, shortest path, and spanning trees.
