A
tree is a connected acyclic graph: n vertices, exactly n-1 edges. Trees are the backbone of hierarchical data (file systems, DOM trees, decision trees). A
spanning tree connects all vertices using a subset of edges. The
Minimum Spanning Tree (MST) does so with minimum total edge weight.
Prim's and
Kruskal's algorithms build MSTs greedily.
A
bipartite graph has vertices partitionable into two sets where all edges go between sets. Important for matching problems: assigning workers to tasks, students to schools, drivers to rides.
A graph is
planar if it can be drawn without edge crossings. The
Four Color Theorem (proved 1976, first computer-assisted proof) states that any planar map needs at most 4 colors so adjacent regions differ.
Euler's formula: for a connected planar graph, V - E + F = 2 where F counts faces (including the outer unbounded face).
A
complete graph K_n has all possible edges. A
cycle C_n forms a single ring. A
path P_n is a line. The
Petersen graph is the canonical counterexample for many conjectures.