A graph G is a collection of a set of vertices and a set of edges that connects those vertices. It consists of two sets:
- Set of Vertices: V = {v1, v2, …, vn}
- Set of edges: E = {e1, e2, …, en}
The graph G is denoted as G = (V, E).
Homomorphism of Graphs: A graph Homomorphism is a mapping between two graphs that respects their structure, i.e., maps adjacent vertices of one graph to the adjacent vertices in the other. A homomorphism from graph G to graph H is a map from VG to VH which takes edges to edges.
Definition: A graph homomorphism F from a graph G = (V, E) to a graph G’ = (V’, E’) is written as:
f : G –> G’
It is a mapping f: V –> V’ from the vertex set of G to the vertex set of G’ such that {u, v} ∈ E ⇒ {f(u), f(v) ∈ E’
The above definition is extended to the directed graphs. Then, for a homomorphism f: G –> G’ is; {f(u), f(v)} is an arc of G’ only if (u, v) is an arc of G. If there exists a homomorphism; f: G –> G’, then it is written as G–>G’ G is said to be homomorphic to G’.
Isomorphism: If the homomorphism f: G –> G’ is a bijection (one-one and onto mapping) whose inverse is also a graph homomorphism, then f is a graph isomorphism.
Example 1: Below are the 2 graphs G = (V, E) with V = {a, b, c, d, e} and E = {(a, b), (b, c), (c, d), (d, e), (e, a)} and G’ = (V’, E’) with V’ = {x, y, z} and E’ = {(x, y), (y, z), (z, x)}.

There exists a mapping f: G –> G’ such that {u, v} ∈ E ⇒ {f(u), f(v)} ∈ E’.
Solution:
Let us say that f(a) = x, f(b) = y, f(c) = z, f(d) = x and f(e) = z.
- If (a, b) is an edge in G, then (f(a), f(b)) must be an edge in E’.
f(a) = x and f(b) = y ⇒ (f(a), f(b)) = (x, y) ∈ E'
- If (b, c) is an edge in G, then (f(b), f(c)) must be an edge in E’.
f(b) = y and f(c) = z ⇒ (f(b), f(c)) = (y, z) ∈ E'
- If (c, d) is an edge in G, then (f(c), f(d)) must be an edge in E’.
f(c) = z and f(d) = x ⇒ (f(c), f(d)) = (z, x) ∈ E'
- If (d, e) is an edge in G, then (f(d), f(e)) must be an edge in E’
f(d) = x and f(e) = z ⇒ (f(d), f(e)) = (x, z) ∈ E'
- If (e, a) is an edge in G, then (f(e), f(a)) must be an edge in E’
f(e) = z and f(a) = x ⇒ (f(c), f(d)) = (z, x) ∈ E'
Therefore, it can be seen that ∀{u, v} ∈ E ⇒ ∃{f(u), f(v)} ∈ E’. So f is a homomorphism.
Example 2: Below are the 2 graphs G = (V, E) with V = {a, b, c, d, e, h} and E = {(a, b), (b, c), (c, d), (d, e), (e, h), (f, a) } and G’ = (V’, E’) with V’ = {1, 2, 3, 4} and
E’ = { (1, 2), (2, 3), (3, 4), (4, 1), (4, 2)}.

There exists a mapping : G–> G’ such that {u, v} ∈ E ⇒ {f(u), f(v)} ∈ E’.
Solution:
Let us say that f(a) = 1, f(b) = 4, f(c) = 2, f(d) = 4, f(e) = 2 and f(h) = 4.
- If (a, b) is an edge in G, then (f(a), f(b)) must be an edge in E’.
f(a) = 1 and f(b) = 4 ⇒ (f(a), f(b)) = (1, 4) ∈ E'
- If (b, c) is an edge in G, then (f(b), f(c)) must be an edge in E’.
f(b) = 4 and f(c) = 2 ⇒ (f(b), f(c)) = (4, 2) ∈ E'
- If (c, d) is an edge in G, then (f(c), f(d)) must be an edge in E’.
f(c) = 2 and f(d) = 4 ⇒ (f(c), f(d)) = (2, 4) ∈ E'.
Note- (2, 4) is the same as (4, 2).
- If (d, e) is an edge in G, then (f(d), f(e)) must be an edge in E’.
f(d) = 4 and f(e) = 2 ⇒ (f(d), f(e)) = (4, 2) ∈ E'
- If (e, h) is an edge in G, then (f(e), f(h)) must be an edge in E’.
f(e) = 2 and f(a) = 4 ⇒ (f(c), f(d)) = (2, 4) ∈ E'
- If (h, a) is an edge in G, then (f(h), f(a)) must be an edge in E’.
f(h) = 4 and f(a) = 1 ⇒ (f(c), f(d)) = (4, 1) ∈ E'
Therefore, it can be seen that ∀{u, v} ∈ E ⇒ ∃{f(u), f(v)} ∈ E’. So f is a homomorphism.
A homomorphism from a graph G to a graph H is a map from VG to VH which maps:
- Edges to Edges.
- Non-Edges to vertex, edge or non-edge.
Example 3: Below are the 2 graphs G = (V, E) with V = {a, b, c, d, e} and E = {(a, b), (b, c), (d, e), (e, h)} and G’ = (V’, E’) with V’ = {1, 2} and E’ = { (1, 2)}.

Solution:
Let us say that f(a) = 1, f(b) = 2, f(c) = 1, f(d) = 2, f(e) = 1
- If (a, b) is an edge in G, then (f(a), f(b)) must be an edge in E’.
f(a) = 1 and f(b) = 2 ⇒ (f(a), f(b)) = (1, 2) ∈ E'
- If (b, c) is an edge in G, then (f(b), f(c)) must be an edge in E’.
f(b) = 2 and f(c) = 1 ⇒ (f(b), f(c)) = (2, 1) ∈ E'
- If (d, e) is an edge in G, then (f(d), f(e)) must be an edge in E’.
f(d) = 2 and f(e) = 1 ⇒ (f(d), f(e)) = (2, 1) ∈ E'
Here, it can be seen that (b, e) is not an edge in G, but (fb), f(e) ) = (2, 1) is an edge in the graph G’.
Similar Reads
Group Homomorphisms and Normal Subgroup
Bunch homomorphisms and typical subgroups are essential ideas in unique variable-based math that assume a pivotal role in grasping the construction and conduct of gatherings. A gathering homomorphism is a plan between two gatherings that safeguards the gathering activity, giving a method for concent
15 min read
Sparse Graph
Graphs are fundamental structures in computer science and mathematics and it is used to model relationships between objects. Understanding the various types of graphs is very important for anyone working in fields like data analysis, networking, and algorithm design. One such type is the sparse grap
9 min read
Inverse Graph
What is Inverse Graph?Inverse of a directed graph G is another directed graph on the same set of vertices with all the edges reversed as present in G. For every directed edge (u, v) present in G, the inverse of the graph has the directed edge (v, u). Why to use Inverse Graph?The idea behind using In
10 min read
Group Isomorphisms and Automorphisms
In the study of algebraic structures, group isomorphisms and automorphisms play a fundamental role. By defining internal symmetries inside a group (automorphisms) and when two groups have the same structure (isomorphisms), these ideas aid in our understanding of the structure and symmetry of groups.
7 min read
Observations on graph
A Graph is a non-linear data structure used for the representation of a set of objects where some pairs of objects are connected. The interconnected objects are represented by points called vertices, and the line that connects the vertices are called edges. Vertices are represented by V and edges ar
4 min read
Basic Properties of a Graph
A Graph is a non-linear data structure consisting of nodes and edges. The nodes are sometimes also referred to as vertices and the edges are lines or arcs that connect any two nodes in the graph. The basic properties of a graph include: Vertices (nodes): The points where edges meet in a graph are kn
4 min read
Hypercube Graph
You are given input as order of graph n (highest number of edges connected to a node), you have to find the number of vertices in a Hypercube graph of order n. Examples: Input : n = 3 Output : 8 Input : n = 2 Output : 4 In hypercube graph Q(n), n represents the degree of the graph. Hypercube graph r
6 min read
Polyhedron Graph
A polyhedral graph, also known as a polyhedron graph, is a type of graph that represents the edges and vertices of a three-dimensional polyhedron. These graphs are planar, meaning they can be drawn on a flat surface without any of the edges crossing each other. This property makes them a key subject
5 min read
Outdegree of a Graph
Outdegree of a vertex is defined as the number of outgoing edges from a vertex in a directed graph. Significance of Outdegree:The outdegree of a directed graph vertex, which reflects the total number of edges emanating from that node, is always positive and never negative.If a directed graph's verte
2 min read
Mathematics | Graph Isomorphisms and Connectivity
Graph theory is a fundamental area in mathematics and computer science, which studies the properties of graphs and their applications. Two essential concepts in graph theory are graph isomorphisms and connectivity. Graph isomorphisms help determine if two graphs are structurally identical, while con
3 min read