Regular Graphs
A graph is -regular if every vertex has degree .
Examples
- 0-regular: isolated vertices
- 1-regular: perfect matching
- 2-regular: disjoint cycles
- 3-regular: cubic graph
- Complete graph : -regular
Properties
For a -regular graph with vertices:
Bipartite Graphs
A graph is bipartite if vertices can be partitioned into two sets and such that every edge connects a vertex in to one in .
Characterization
A graph is bipartite if and only if it contains no odd cycles.
Testing Bipartiteness
Use BFS/DFS with 2-coloring. If no conflicts arise, graph is bipartite.
Complete Bipartite Graph
Every vertex in the first set (size ) is connected to every vertex in the second set (size ).
- Edges:
- Bipartite with parts of sizes and
Special case: is a star graph.
Trees
A tree is a connected graph with no cycles.
Equivalent Definitions
For a graph with vertices, the following are equivalent:
- is a tree
- is connected and has edges
- has no cycles and has edges
- There is exactly one path between any two vertices
- is connected, but removing any edge disconnects it
- has no cycles, but adding any edge creates exactly one cycle
Properties
- At least 2 leaves (vertices of degree 1) if
- Adding one edge creates exactly one cycle
Rooted Trees
A rooted tree has a designated root vertex.
Terminology
- Parent: The neighbor closer to the root
- Child: A neighbor farther from the root
- Ancestor/Descendant: Generalization of parent/child
- Leaf: Vertex with no children
- Internal vertex: Vertex with at least one child
- Depth: Distance from root to vertex
- Height: Maximum depth of any vertex
Binary Trees
Each vertex has at most 2 children (left and right).
Types
- Full binary tree: Every internal vertex has exactly 2 children
- Perfect binary tree: All leaves at same depth, all internal vertices have 2 children
- Complete binary tree: All levels filled except possibly the last, which is filled left-to-right
Properties of Full Binary Trees
With internal vertices and leaves:
- Total vertices:
Properties of Perfect Binary Trees
With height :
- Leaves:
- Internal vertices:
- Total vertices:
Forests
A forest is a graph with no cycles (disjoint union of trees).
For a forest with vertices, connected components:
Planar Graphs
A graph is planar if it can be drawn in the plane without edge crossings.
Euler's Formula
For a connected planar graph:
where is the number of faces (including unbounded outer face).
Degree-Face Bound
Non-Planar Examples
- (complete graph on 5 vertices)
- (complete bipartite graph)
Connected Graphs
A graph is connected if there's a path between every pair of vertices.
Connected Components
Maximal connected subgraphs. Every graph is a disjoint union of its components.
Strongly Connected (Digraphs)
A directed graph is strongly connected if there's a directed path between every pair of vertices in both directions.
Weakly Connected (Digraphs)
Connected if we ignore edge directions.
Special Graph Families
Petersen Graph
A famous 3-regular graph with 10 vertices.
- Not planar
- Hamiltonian
- Vertex-transitive
Grid Graphs
Vertices at integer coordinates, edges between adjacent points.
- grid has vertices and edges
Hypercube
Vertices are -bit strings.
- : single edge
- : square
- : cube
- ,
Circulant Graphs
Vertices on a circle. Connection set : edge if .