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 objects or places, and edges are the links between them. Graphs can have directions on edges, meaning the connection goes one way, or no direction, 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 organize and find relationships between many connected items. They let us find shortest paths, group related items, and model complex systems easily.
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 problems using graphs.