Unit summary
A graph has vertices and edges; the sum of degrees equals twice the number of edges. Complete graphs Kₙ have n(n−1)/2 edges. Graphs may be connected, directed or weighted. A connected graph has an Euler circuit when all degrees are even and an Euler path when exactly two are odd; Hamiltonian cycles visit every vertex once and have no simple test. A tree has n − 1 edges and a unique path between vertices; spanning trees and minimum spanning trees (Kruskal, Prim) connect all vertices cheaply. Planar graphs satisfy v − e + f = 2 and e ≤ 3v − 6; K₅ and K₃,₃ are non-planar.
Glossary
| Term | Meaning |
|---|---|
| Vertex | A node of a graph |
| Edge | A line joining two vertices |
| Degree | Number of edges at a vertex |
| Complete graph | Every pair of vertices is joined |
| Euler circuit | Closed walk using every edge once |
| Hamiltonian cycle | Cycle visiting every vertex once |
| Tree | Connected graph with no cycle |
| Spanning tree | Tree containing all vertices of a graph |
| Planar graph | Graph that can be drawn without crossings |
| Region | A face of a planar drawing |
Question bank
Short answer questions
- State the handshaking lemma.
- Condition for an Euler circuit.
- How many edges does a tree with 12 vertices have?
- State Euler's formula for planar graphs.
- Why is K₅ not planar?
Long answer questions
- Explain types of graphs and graph terminology.
- Explain Euler and Hamiltonian graphs with examples.
- Explain trees and find a minimum spanning tree using Kruskal's algorithm.
- Explain planar graphs and Euler's formula.
- Prove that a tree with n vertices has n − 1 edges.
Sources
- Official BCA syllabus Mathematics Foundations to Computer Science I, course code CC101, Unit III
