Hamiltonian Graph
Hamiltonian Graph
In other words, we can say that the above graph contains a Hamiltonian circuit. That's
why this graph is a Hamiltonian graph.
Hamiltonian Path
In a connected graph, if there is a walk that passes each and every vertex of a graph
only once, this walk will be known as the Hamiltonian path. In this walk, the edges
should not be repeated. There is one more definition to describe the Hamiltonian path:
if a connected graph contains a Path with all the vertices of the graph, this type of path
will be known as the Hamiltonian path.
Example 1: In the following graph, we have 5 nodes. Now we have to determine
whether this graph contains a Hamiltonian path.
Solution:
In the above graph, we can see that when we start from A, then we can go to B, C, D,
and then E. So this is the path that contains all the vertices (A, B, C, D, and E) only once,
and there is no repeating edge. That's why we can say that this graph has a Hamiltonian
path, which is described as follows:
Hamiltonian Circuit
In a connected graph, if there is a walk that passes each and every vertex of the graph
only once and after completing the walk, return to the starting vertex, then this type
of walk will be known as a Hamiltonian circuit. For the Hamiltonian circuit, there must
be no repeated edges. We can also be called Hamiltonian circuit as the Hamiltonian
cycle.
o If there is a Hamiltonian path that begins and ends at the same vertex, then this
type of cycle will be known as a Hamiltonian circuit.
o In the connected graph, if there is a cycle with all the vertices of the graph, this
type of cycle will be known as a Hamiltonian circuit.
o A closed Hamiltonian path will also be known as a Hamiltonian circuit.
Solution: =5
The above graph contains the Hamiltonian circuit if there is a path that starts and ends
at the same vertex. So when we start from the A, then we can go to B, C, E, D, and then
A. So this is t he path that contains all the vertices (A, B, C, D, and E) only once, except
the starting vertex, and there is no repeating edge. That's why we can say that this
graph has a Hamiltonian circuit, which is described as follows:
Solution:
The above graph contains the Hamiltonian circuit if there is a path that starts and ends
at the same vertex. So we will start from the E, then we can go A, B, C, D. To react to
the same vertex E, we can have to again go to vertex A. So this is the path that contains
all the vertices (A, B, C, D, and E), but vertex A is repeated to reach the initial vertex.
That's why we can say that this graph does not contain a Hamiltonian circuit.
Graph isomorphism
The isomorphism graph can be described as a graph in which a single graph can have more
than one form. That means two different graphs can have the same number of edges,
vertices, and same edges connectivity. These types of graphs are known as isomorphism
graphs. The example of an isomorphism graph is described as follows:
Solution: For this, we will check all the four conditions of graph isomorphism, which
are described as follows:
Condition 1:
o In graph 1, there is a total 4 number of vertices, i.e., G1 = 4.
o In graph 2, there is a total 4 number of vertices, i.e., G2 = 4.
o In graph 3, there is a total 4 number of vertices, i.e., G3 = 4.
Here,
There are an equal number of vertices in all graphs G1, G2 and G3. So these graphs
satisfy condition 1. Now we will check the second condition.
Condition 2:
Condition 3:
o In the graph 1, the degree of sequence s is {2, 2, 3, 3}, i.e., G1 = {2, 2, 3, 3}.
o In the graph 2, the degree of sequence s is {2, 2, 3, 3}, i.e., G2 = {2, 2, 3, 3}.
Here
There are an equal number of degree sequences in both graphs G1 and G2. So these
graphs satisfy condition 3. Now we will check the fourth condition.
Condition 4:
Graph G1 forms a cycle of length 3 with the help of vertices {2, 3, 3}.
Graph G2 also forms a cycle of length 3 with the help of vertices {2, 3, 3}.
Here,