01 Key Concepts
Vertices and Edges
A graph consists of vertices (nodes/points) and edges (connections between pairs of vertices).
Degree of a Vertex
The number of edges connected to that vertex.
Directed vs. Undirected Graphs
In a directed graph, edges have a direction (one-way); in an undirected graph, edges go both ways equally.
Path and Cycle
A path is a sequence of edges connecting a sequence of distinct vertices. A cycle is a path that starts and ends at the same vertex.
Connected Graph
A graph where there is a path between every pair of vertices.
Weighted Graph
A graph where each edge has an associated numeric value (weight), often representing cost, distance, or time.
02 Key Formulas
- Sum of all vertex degrees = 2 * (number of edges)
03 Solved Examples
- Count the edges touching B: A-B and B-C.
- That's 2 edges.
- Use the handshake formula: sum of degrees = 2 * number of edges = 2*5.
- Check if it starts and ends at the same vertex, following distinct edges: A to B to C, then back to A.
- This forms a closed loop through 3 distinct vertices.
04 Practice Questions
π Graph Theory β Downloadable Worksheet
10 questions with a full answer key. Grab the PDF to print, or try the interactive version in your browser.