Overview - Graph Terminology Vertices Edges Directed Undirected Weighted
What is it?
A graph is a way to show connections between things using points called vertices and lines called edges. Vertices are the items or spots, and edges are the links between them. Graphs can have directions on edges, meaning the connection goes one way, or be undirected, meaning the connection goes 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 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, or understand how things connect, which is crucial in technology and daily life.
Where it fits
Before learning graph terminology, you should know basic data structures like arrays and lists. After this, you can learn graph algorithms like searching, shortest path, and spanning trees to solve complex problems.
