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. Edges can have directions (directed) or not (undirected), and they can also have weights, which are numbers showing the strength or cost of the connection.
Why it matters
Graphs help us understand and solve many real-world problems like maps, social networks, and computer networks. Without graphs, it would be hard to model relationships or paths between objects clearly. They let us find shortest routes, detect groups, and analyze connections efficiently.
Where it fits
Before learning graphs, you should know basic data structures like arrays and lists. After graphs, you can learn graph algorithms like searching, shortest path, and spanning trees. Graphs build on these basics and lead to advanced problem solving.
