Definition
Two graphs and are isomorphic if there exists a bijection such that:
Notation:
Intuitively, isomorphic graphs have the same structure — only vertex labels differ.
Graph Invariants
Properties preserved under isomorphism. If , they must have the same:
Basic Invariants
- Number of vertices
- Number of edges
- Degree sequence (multiset of all degrees)
Structural Invariants
- Number of connected components
- Number of cycles of each length
- Diameter (longest shortest path)
- Girth (length of shortest cycle)
- Chromatic number
- Number of spanning trees
Spectral Invariants
- Eigenvalues of adjacency matrix
- Eigenvalues of Laplacian matrix
Using Invariants
Invariants can prove graphs are NOT isomorphic.
Example:
- : degree sequence
- : degree sequence
because degree sequences differ.
Warning: Equal invariants don't prove isomorphism!
Degree Sequence Analysis
Matching Vertices
Vertices with the same degree in isomorphic graphs can only map to each other.
Neighbors' Degrees
If maps to , then neighbors of must map to neighbors of with matching degrees.
Algorithm for Small Graphs
- Check basic invariants (if different, not isomorphic)
- Partition vertices by degree
- Try to match vertices of same degree
- Verify adjacency relationships
- If a valid bijection exists, graphs are isomorphic
Examples
Non-Isomorphic Detection
Graphs with 4 vertices, 4 edges:
- Square : degree sequence
- minus edge: degree sequence
Not isomorphic (different degree sequences).
Isomorphism Verification
Example: Are these isomorphic?
- : vertices , edges
- : vertices , edges
Both are 4-cycles with degree sequence .
Bijection: preserves adjacency.
Therefore .
Automorphisms
An automorphism of a graph is an isomorphism from the graph to itself.
Automorphism Group
The set of all automorphisms forms a group under composition, denoted .
Examples
- Complete graph :
- Path : (identity and reversal)
- Cycle : (rotations and reflections)
Vertex-Transitive Graphs
A graph is vertex-transitive if for any two vertices , there exists an automorphism mapping to .
Examples: Complete graphs, cycles, hypercubes.
Labeled vs. Unlabeled Graphs
Labeled Graphs
Vertices have distinct labels. Two labeled graphs are isomorphic if there's a label-preserving bijection (i.e., they're identical).
Unlabeled Graphs
We consider graphs the same if isomorphic.
Counting
| Labeled simple graphs | Unlabeled simple graphs | |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 2 | 2 |
| 3 | 8 | 4 |
| 4 | 64 | 11 |
| 5 | 1024 | 34 |
Labeled: (each potential edge is present or not)
Computational Complexity
Graph Isomorphism Problem
Given two graphs, determine if they're isomorphic.
- Not known to be in P
- Not known to be NP-complete
- Quasipolynomial time algorithm exists (Babai, 2015)
Subgraph Isomorphism Problem
Given and , is isomorphic to a subgraph of ?
This problem is NP-complete.
Canonical Forms
A canonical form assigns a unique representative to each isomorphism class.
Canonical Labeling
Relabel vertices in a standard way so isomorphic graphs get identical representations.
Applications
- Graph databases
- Chemical structure comparison
- Network analysis