Isomorphism and Homomorphism of graphs

Comprehensive study notes, diagrams, and exam preparation for Isomorphism and Homomorphism of graphs.

Isomorphism and Homomorphism of Graphs

Definition

A graph isomorphism between two graphs and is a bijective mapping such that for any two vertices ,

If such a mapping exists, the graphs are called isomorphic, written as .

A graph homomorphism from a graph to a graph is a function such that whenever , we also have . Unlike isomorphism, a homomorphism need not be one-to-one or onto.


Main Content

1. Graph Isomorphism

Meaning and idea

  • : Two graphs are isomorphic when they have the same structure, even if their vertex names, drawings, or layouts are different. Isomorphism preserves adjacency and non-adjacency completely. In other words, if one graph has an edge between two vertices, the corresponding vertices in the other graph must also have an edge, and if there is no edge, that absence must also be preserved.

Example and properties

  • : Consider two triangles drawn differently. If both have three vertices and every pair of vertices is connected, then they are isomorphic. A simple example is:
  • Graph : vertices , edges
  • Graph : vertices , edges

The mapping , , is an isomorphism.
Important characteristics preserved under isomorphism include:

  • number of vertices and edges
  • degree sequence
  • connectivity
  • cycles of given lengths
  • adjacency relations
  • components and isolated vertices

A useful way to visualize isomorphic graphs is through relabeling:

G:                    H:
a --- b               1 --- 2
 \   /                 \   /
   c                     3

Both represent the same triangle structure, so .


2. Graph Homomorphism

Meaning and idea

  • : A graph homomorphism is a structure-preserving map, but it allows vertices of the first graph to “collapse” onto the same vertex in the second graph. This makes homomorphisms much more general than isomorphisms. The only requirement is that edges must map to edges.

Example and properties

  • : Let be a path with vertices and edges . Let be a triangle with vertices . A map is a homomorphism because:

  • edge maps to , which is an edge in

  • edge maps to , which is also an edge in

Here, two different vertices of map to the same vertex in , so the map is not injective.
Key features of homomorphisms:

  • they preserve adjacency, but not necessarily non-adjacency
  • multiple vertices may map to one vertex
  • they can be used to color graphs, compress structures, and compare graph complexity
  • every isomorphism is a homomorphism, but not every homomorphism is an isomorphism

A small diagram showing collapsing under homomorphism:

G:                  H:
u --- v --- w       1 --- 2 --- 3
|                   (triangle can also be used)

If and both map to vertex , the path’s edges still go to valid edges in .


3. Differences, Relationships, and Special Cases

Relationship between the two concepts

  • : Isomorphism is a special case of homomorphism. A graph isomorphism is a homomorphism that is both one-to-one and onto, and whose inverse is also edge-preserving. Homomorphism is therefore the broader concept, while isomorphism is the exact structural equivalence case.

Comparison and special cases

  • : The distinction becomes clear in practical use:
  • Isomorphism means “same graph structure.”
  • Homomorphism means “structure can be mapped into another graph in a way that preserves edges.”

Some important special observations:

  • A graph may have a homomorphism to a complete graph exactly when it is -colorable.
  • If two graphs are isomorphic, then they have identical structural invariants.
  • If a homomorphism exists, it does not imply the graphs are the same size or equally complex.

Example:

  • A 4-cycle can be homomorphically mapped to by coloring alternating vertices with the two vertices of .
  • But is not isomorphic to , since they differ in number of vertices and edges.

This shows why homomorphisms are more flexible and why isomorphisms are stricter.


Working / Process

1. Check basic graph invariants first

Compare the number of vertices, number of edges, degree sequence, number of connected components, and cycle structure. If any of these differ, the graphs cannot be isomorphic. For homomorphism, check whether adjacency can be preserved under some mapping.

2. Construct a vertex mapping

Try to assign vertices of one graph to vertices of the other. For isomorphism, the map must be bijective. For homomorphism, repeated images are allowed. Then verify every edge maps to an edge.

3. Verify preservation of structure

For isomorphism, confirm both adjacency and non-adjacency are preserved in both directions. For homomorphism, only edge preservation is necessary. If every required condition holds, the mapping is valid.


Advantages / Applications

Graph comparison and recognition

  • : Isomorphism helps determine whether two graphs are structurally identical, which is useful in network analysis, chemistry, and pattern matching.

Graph coloring and constraint problems

  • : Homomorphisms are strongly connected to graph coloring. Mapping a graph to a complete graph gives a mathematical way to express proper colorings.

Computer science and mathematics applications

  • : These concepts are used in database theory, logic, circuit design, image recognition, molecular structure comparison, and algorithmic graph theory.

Summary

  • Graph isomorphism means two graphs have exactly the same structure under relabeling.
  • Graph homomorphism is a more general structure-preserving map that sends edges to edges.
  • Isomorphism is a special case of homomorphism with a bijective correspondence.
  • These concepts help in comparing graphs, studying colorings, and analyzing structural patterns.