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, and the connections between them are called edges. Edges can have directions, meaning they go one way, or be undirected, meaning they go both ways. Sometimes edges have weights, which are numbers showing how strong or costly the connection is.
Why it matters
Graphs help us understand and solve many real-world problems like finding the shortest path on a map, social network connections, or scheduling tasks. Without graphs, it would be hard to model and analyze these relationships clearly and efficiently.
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 paths, and spanning trees.
