Unit 5 Graph Question Bank Solution DM & GT Sem 4 Cseaiml 2022 Even
Unit 5 Graph Question Bank Solution DM & GT Sem 4 Cseaiml 2022 Even
UNIT:5 GRAPH
Solution:
Isolated Vertex/node: A vertex of degree zero in a graph is called an isolated vertex.
Mixed Graph: If some edge of a graph G are directed and some are undirected then G is
said to be a mixed graph
Sub graph:
(2) Null graph obtained by deleting all edges of G is also a sub graph of G
(3) A single edge along with end vertices is also a sub graph of G
Solution:
(1)Graph:
Let V be the non-empty set of point and E be the set of lines between points, then
ordered pair (V, E) is known as graph.
• V=V(G)= {𝑣1 , 𝑣2 , 𝑣3 , ….} is a set of vertices.( node, junction, o-simplex)
• E =E(G)={𝑒1 , 𝑒2 , 𝑒3} , , ….} is a set of edges. (line, arc, branch , 1-simplex)
(2)Directed Edges:
In a directed graph G an edge ‘e’ which is associated with an ordered pair of nodes ‘u’ to
‘v’ is called directed edge of graph G.
Circuit:
𝑣6 − 𝑣4 − 𝑣5 − 𝑣6
𝑣1 − 𝑣2 − 𝑣3 − 𝑣4 − 𝑣1
(7)Length of a Path:
No. of edges in a path is called the length of path.
(1) Length of shortest circuit (if any) in G is called Girth of G, denoted by g(G)
(2) Length of longest circuit is called circumference of G, denoted by C(G)
Length of a path
a-c-d = 2
a-b-c-d = 3
2 Explain converse (reverse) of a digraph with an example. [NLJIET] 3
Solution:
Converse ( reversal/Directional dual) of a digraph:
3 Define simple graph, degree of a vertex and complete graph. (Oct–2020) [NLJIET] 3
Solution:
A graph which has neither loop nor parallel edges is called a simple graph.
(2)Degree of a vertex:
In a directed graph G the no. of edge ending at a vertex V is called in degree of V &
• The sum of in degree and out degree is called the total degree of vertex
a 0 3 3
b 2 1 3
c 2 1 3
d 1 1 2
e 1 2 3
f 2 0 2
(3)Complete Graph:
A simple Graph G in which every pair of distinct vertices are adjacent is called a complete graph.
4 Draw di-graph and find in-degree and out-degree of each vertex from the given adjacency 7
matrix. Use adjacency matrix, find total no. of path of length 1 and 2 between each vertex.
1 1 1
A = [1 1 1] [NLJIET]
1 1 1
Solution:
Directed Graph / Digraph:
𝒗𝟏 1 1 2
𝒗𝟐 1 1 2
𝒗𝟑 1 1 2
Path of Length 1
Path of Lengtrh 2
Solution:
Sub graph:
6 How many nodes are necessary to construct a graph with exactly 8 edges in which each 3
node is of degree 2? [NLJIET]
Solution:
2 |𝐸| = 2 × 8
|𝐸| = 8
Number of vertices in G = 8
7 Draw a simple graph with 4 nodes and 7 edges if possible. If not give reason. [NLJIET] 3
Solution:
By theorem,
𝑛(𝑛 − 1)
=
2
(4)(4 − 1)
=
2
= 6
|𝐸|= 7 < 6
Which is Contradiction.
Hence,
Solution:
9 Draw two complete bipartite graphs, which are not regular. [NLJIET] 3
Solution:
(1) 𝐾3 ,4
(2)
Solution:
Two graphs G1 and G2 are said to be isomorphic if −
• Their number of vertices are same.
• Their number of edges are same.
• If 𝑮𝟏 has n vertices of degree k then 𝑮𝟐 has n vertices of degree k.
• Adjacency is preserved.
(1)|V(E)| = |V(F)| = 6
(2)|E(E)| = |E(F)| = 8
(3) Adjacency is also preserved
In graphs E and F, 4 vertices are of degree 3 and 2 vertices are of degree 2
So, E is isomorphic to F
OR
(1)|V(G)| = |V(H)| = 5
(2)|E(G)| = |E(H)| = 5
In graph G In graph H
d(y) = 2
d(a) = 2
d(b) = 2 d(v) = 2
d(c) = 2 d(x) = 2
d(d) = 2 d(z) = 2
d(e) = 2 d(w) = 2
Solution:
Two graphs G1 and G2 are said to be isomorphic if −
• Their number of vertices are same.
• Their number of edges are same.
• If 𝑮𝟏 has n vertices of degree k then 𝑮𝟐 has n vertices of degree k.
• Adjacency is preserved.
All the above conditions are necessary for the graphs G1 and G2 to be isomorphic, but
not sufficient to prove that the graphs are isomorphic.
Sufficient conditions for the graphs G1 and G2 to be isomorphic.
• The adjacency matrices of G1 and G2 are same.
• Their complement graphs are isomorphic.
• The corresponding sub graphs of G1 and G2 (obtained by deleting some vertices
in G1 and their images in graph G2 are isomorphic..
12 Give an abstract definition of graph. When are two simple graphs said to be isomorphic? 7
Give an example of two simple digraphs having 4 nodes and 4 edges which are not
isomorphic [NLJIET]
Solution:
Graph:
Let V be the non-empty set of point and E be the set of lines between points, then
An example of two simple digraphs having 4 nodes and 4 edges which are not
isomorphic
Graph G Graph H
(1)|V(G)| = |V(H)| = 4
(2)|E(G)| = |E(H)| = 4
In graph G In graph H
d(𝒂′ ) = 2
d(a) = 2
d(b) = 2 d(𝒃′ )) = 3
d(c) = 2 d(𝒄′ ) = 1
d(d) = 2 d(𝒅′ ) = 2
13 Define isomorphic graphs. State whether the following graphs are isomorphic or not. 4
[NLJIET]
Solution:
Isomorphic graphs
• Adjacency is preserved
Notation: G1 ≡ G2
To check Isomorphism:
(1) |V(G1)| = |V(G2) = 5|
(2) |E(G1)| = |E(G2)| = 6
(3) To check Adjacency:
In Graph 𝑮𝟏 In Graph 𝑮𝟐
𝒅(𝒖𝟏 ) = 𝟐 𝒅(𝒗𝟏 ) = 𝟐
𝒅(𝒖𝟐 ) = 𝟐 𝒅(𝒗𝟐 ) = 𝟒
𝒅(𝒖𝟑 ) = 𝟑 𝒅(𝒗𝟑 ) = 𝟑
𝒅(𝒖𝟒 ) = 𝟑 𝒅(𝒗𝟒 ) = 𝟏
𝒅(𝒖𝟓 ) = 𝟐 𝒅(𝒗𝟓 ) = 𝟐
In graph 𝑮𝟏
In graph 𝑮𝟐
No. of vertices having 4 degree=1
No. of vertices having 3 degree=1
No. of vertices having 2 degree=2
No. of vertices having 1 degree=1
Adjacency is not preserved,
So, G1 and G2 are not isomorphic.
14 Define isomorphic graphs. State whether the following digraphs are Isomorphic or not. 7
Justify your answer.
[NLJIET]
Solution:
Two graphs G1 and G2 are said to be isomorphic if −
• Their number of vertices are same. . i.e. |V(G1)| = |V(G2)|
• Their number of edges are same. i.e. |E(G1)| = |E(G2)|
• An equal number of vertices with given degree
• Adjacency is preserved
Notation: G1 ≡ G2
To check Isomorphism:
(1) |V(G1)| = |V(G2) | = 6
(2) |E(G1)| = |E(G2)| = 9
(3) To check Adjacency:
In Graph G1
Vertex In degree Out degree
In Graph G2
Vertex In degree Out degree
𝑢1 is correspondent to 𝑣1
𝑢2 is correspondent to 𝑣2
𝑢3 is correspondent to 𝑣3
𝑢4 is correspondent to 𝑣4
𝑢5 is correspondent to 𝑣5
𝑢6 is correspondent to 𝑣6
Adjacency is preserved
15 Define: Isomorphic Graph. State whether the following graphs are isomorphic or not: 7
[NLJIET] (Sep–2021) [NLJIET]
Solution:
• Adjacency is preserved
Notation: G1 ≡ G2
Solution-
Condition-01:
Here,
• Both the graphs G1 and G2 have same number of vertices.
• So, Condition-01 satisfies
Condition-02:
Here,
• Both the graphs G1 and G2 have same number of edges.
• So, Condition-02 satisfies.
Condition-03:
Here,
• Both the graphs G1 and G2 do not contain same cycles in them.
• So, Condition-03 violates.
OR
16 Define isomorphism of graphs and find whether K6 and K3,3 graphs are isomorphic or not. 5
[NLJIET]
Solution:
Two graphs G1 and G2 are said to be isomorphic if −
• Their number of vertices are same. . i.e. |V(G1)| = |V(G2)|
• Their number of edges are same. i.e. |E(G1)| = |E(G2)|
• An equal number of vertices with given degree
• Adjacency is preserved
Notation: G1 ≡ G2
To check Isomorphism:
𝑛(𝑛−1)
𝐾𝑛 has exactly edges
2
6(6−1) 30
∴ 𝐾6 = = = 15
2 2
𝐾6 have 15 edges
𝐾𝑚 ,𝑛 has mn edges
∴ No. of edges = 3 × 3= 9
|E(G1)| ≠ |E(G2)|
17 Define a path in graph. Define length of the path. What is difference between a simple path 3
and an elementary path? [NLJIET]
Solution:
(1)Path:
(2)Length of a Path:
(1) Length of shortest circuit (if any) in G is called Girth of G, denoted by g(G)
A Simple Path: The path is called simple one if no edge is repeated in the path,
An Elementary Path: The path is called elementary one if no vertex is repeated in the
path,
Simple Path:
1−2−3
1−4−3
1−2−4−3
Elementary Path:
1 − 2 − 3 ⇒ Length of path = 2
1 − 4 − 3 ⇒ Length of path = 2
1 − 2 − 4 − 3 ⇒ Length of path = 3
18 Define adjacency matrix of a digraph. Obtain the adjacency matrix A of the given digraph. 7
Find the elementary paths of lengths 1 and 2 from v1 to v4 .[NLJIET]
Solution:
The adjacency matrix A = [𝑎𝑖𝑗 ] for a directed graph G with n vertices is an n × n matrix defined by
= 0 otherwise
0 1 0 1
0 0 1 1
A=
0 1 0 1
0 1 0 0
𝒗𝟏 - 𝒗𝟒
𝒗𝟏 −𝒗𝟐 − 𝒗𝟒
19 Define Adjacency matrix and path matrix of a graph. Explain each with example. 4
[NLJIET]
Solution:
(1)Adjacency matrix of Non- Directed Graph
Let G be a graph with n vertices & no parallel edges. The adjacency matrix A = [𝑎𝑖𝑗 ] of
order n × n defined by
= 0 otherwise
The adjacency matrix A = [𝑎𝑖𝑗 ] for a directed graph G with n vertices is an n × n matrix defined by
= 0 otherwise
0 0 0 1
1 0 0 0
A=
1 1 0 1
0 1 1 0
The Path matrix P = [𝑝𝑖𝑗 ] for a directed graph G with n vertices is an n × n matrix defined by
= 0 otherwise
1 1 1 1
1 1 1 1
P=
1 1 1 1
1 1 1 1
20 Define adjacency matrix of a graph and obtain the adjacency matrix (A) for the following 7
graph. State the in degree and out degree of all the vertices. Find A2, B2 and Path matrix P.
[NLJIET]
Solution:
1)Adjacency matrix of Non- Directed Graph
Let G be a graph with n vertices & no parallel edges. The adjacency matrix A = [𝑎𝑖𝑗 ] of
order n × n defined by
= 0 otherwise
The adjacency matrix A = [𝑎𝑖𝑗 ]for a directed graph G with n vertices is an n × n matrix defined by
= 0 otherwise
0 0 0 1
1 0 0 0
A=
1 1 0 1
0 1 1 0
In Graph G
Vertex In degree Out degree
0 0 0 1 0
1 0 0 0 0
𝐴= 0 1 0 0 0
0 1 1 0 0
[0 0 1 0 0]
Discrete Mathematics and Graph Theory (3144202) 2022 Page | 27
New L J Institute of Engineering and Technology Semester: IV (2022)
Hence, 𝐵𝑛 = 𝐵5 = 𝐴 + 𝐴2 + 𝐴3 + 𝐴4 + 𝐴5
0 1 1 0 0
0 0 0 1 0
A = 1
2 0 0 0 0
1 1 0 0 0
0 1 0 0 0
1 1 0 0 0
0 1 1 0 0
A3 = 0 0 0 1 0
1 0 0 1 0
1 0 0 0 0
1 0 0 1 0
1 1 0 0 0
A = 0
4 1 1 0 0
0 1 1 1 0
0 0 0 1 0
0 1 1 1 0
1 0 0 1 0
A5 = 1 1 0 0 0
1 2 1 0 0
0 1 1 0 0
𝐴𝑙𝑙 𝑒𝑛𝑡𝑟𝑖𝑒𝑠 𝑜𝑓 𝐵𝑛 = 𝐵5 = 𝐴 + 𝐴2 + 𝐴3 + 𝐴4 + 𝐴5 ≠ 0
1 1 1 1 1
1 1 1 1 1
𝑃= 1 1 1 1 1
1 1 1 1 1
[1 1 1 1 1]
21 A graph G has 15 edges, 3 vertices of degree 4 and other vertices of degree 3. Find the 3
number of vertices in G. (Oct–2020) [NLJIET]
Solution:
𝑑(𝑉1 ) = 4
𝑑(𝑉2 ) = 4
⇒ 4 + 4 + 4 + 3 × 𝑥 = 2 × 15
⇒ 12 + 3 × 𝑥 = 30
⇒ 3 × 𝑥 = 30 − 12 = 18
18
⇒𝑥= =6
3
22 Define vertex disjoint and edge disjoint sub graphs by drawing the relevant graphs. 4
(Oct–2020) [NLJIET]
Solution:
– It is of two types
Let G be a graph and 𝐺1 and 𝐺2 be two sub graphs of G. Then 𝐺1 and 𝐺2 are called edge
disjoint if they have no edge in common
– Let G be a graph and 𝐺1 and 𝐺2 be two sub graphs of G. Then𝐺1 and 𝐺2 are called vertex-
disjoint sub graph of G if they have no vertex in common.
Figure
23 Define the following by drawing graphs (i) weak component (ii) unilateral component 4
(iii) strong component. (Oct–2020) [NLJIET]
Solution:
24 Prove that there are always an even number of vertices of odd degree in a graph 3
(Oct–2020) [NLJIET]
Discrete Mathematics and Graph Theory (3144202) 2022 Page | 30
New L J Institute of Engineering and Technology Semester: IV (2022)
Solution
We know that 2 | E | =∑𝑣∈𝑉 deg (𝑣) = ∑𝑣∈𝑉1 deg (𝑣) + ∑𝑣∈𝑉2 deg (𝑣)
So, the second term on RHS i.e. ∑𝑣∈𝑉2 deg (𝑣) must be even.
But Since all the terms in this sum are odd so there must be an even number of such terms.
Hence we conclude that there are an even number of vertices of odd degree.
25 Find the number of edges in a r – regular graph with n – vertices. (Oct–2020) [NLJIET] 3
Solution:
Solution:
Adjacent Vertices(Nodes):
If two nodes u and v are joined by an edge e then u and v are said to be adjacent nodes.
Self-Loop(Sling):
An edge e of a graph G that joins a node u to itself is called a loop. A loop is an edge e =
(u, v).
SELF LOOP
Pendent Vertex:
A vertex of a graph with degree one is called a pendent vertex( or end vertex)
Solution:
⇒ 2 + 2 + 2 + 2 + 2 = 2 |𝐸|
⇒ 2 |𝐸| = 2 × 5
⇒ |𝐸| = 5
Number of edges in G = 5
Let G be a graph and H be a sub graph of G. The complement H in G is the graph obtained
by deleting the edges of H from those of G
(Complement of H in G is denoted by H )
29 Define path and circuit of a graph by drawing the graphs (Feb-2021) [NLJIET] 4
Solution:
Path:
𝑣1 − 𝑣2 − 𝑣3 − 𝑣4 − 𝑣5 is a path.
𝑣1 − 𝑣3 − 𝑣4 − 𝑣5 is a path.
Note:
Circuit: (Cycle)
A closed path begin and ends at same vertex is called a circuit or elementary circuit
Simple Circuit:
A circuit is said to be simple circuit if it does not include same edge twice
Elementary Circuit:
A circuit is said to be Elementary circuit if it does not include same vertex twice except the
end vertex.
Circuit:
𝑣6 − 𝑣4 − 𝑣5 − 𝑣6
𝑣1 − 𝑣2 − 𝑣3 − 𝑣4 − 𝑣1
Note:
(1) Length of shortest circuit (if any) in G is called Girth of G, denoted by g(G).
30 Define adjacency matrix and find the same for (Feb–2021) [NLJIET] 4
Solution:
Let G be a graph with n vertices & no parallel edges. The adjacency matrix A = [𝑎𝑖𝑗 ] of
order n × n defined by
= 0 otherwise
The adjacency matrix A = [𝑎𝑖𝑗 ]for a directed graph G with n vertices is an n × n matrix defined by
= 0 otherwise
0 1 1 1 0
1 0 1 0 0
A = 1 1 0 1 0
1 0 1 0 1
0 0 0 1 0
31 Define in degree and out degree of a graph with example (Feb – 2021) [NLJIET] 3
Solution:
In a directed graph G the no. of edge ending at a vertex V is called in degree of V &
• The sum of in degree and out degree is called the total degree of vertex
a 0 3 3
b 2 1 3
c 2 1 3
d 1 1 2
e 1 2 3
f 2 0 2
Solution:
𝒓×𝒏
The number of edges in a r – regular graph with n – vertices = |𝑬| = 𝟐
33 How many nodes are necessary to construct a graph with exactly 8 edges in which each 3
node is of degree 2 (Sep–2021) [NLJIET]
Solution:
Given that |𝐸|= 8
We know that
∑𝑛𝑖=1 𝑑( 𝑉𝑖 ) = 2 |𝐸|
2+2+2+…n times = 2 × 8
2 𝑛 = 2 × 8
𝑛 =8
Number of vertices in G = 8
34 Define Cyclic graph, Null graph and Strongly connected graph. (Sep–2021) [NLJIET] 3
Solution:
(1)Cyclic graph: A graph containing at least one cycle in it is called as a cyclic graph.
Examples-1
Example-2
Here,
Example
A directed graph is said to be strongly connected if for every two vertices a and b in G there is a
path from a to b and b to a.
Solution:
Complete graph K4 is regular as degree of each vertex is 3
V1 V2
V3 V4
3 Regular graph with 4 vertices is not bipartite as
V1 is joined with V3 and V2 is joined with V4
36 Explain the following terms with proper illustrations. a) Directed graphs b) Simple and 7
elementary path c) Reachability of a vertex d) Connected graph (Dec-2021) [NLJIET]
Solution:
Path:
A Simple Path: The path is called simple one if no edge is repeated in the path,
An Elementary Path: The path is called elementary one if no vertex is repeated in the
path,
Simple Path:
1−2−3
1−4−3
1−2−4−3
Elementary Path:
1 − 2 − 3 ⇒ Length of path = 2
1 − 4 − 3 ⇒ Length of path = 2
1 − 2 − 4 − 3 ⇒ Length of path = 3
(c)Reachability of a vertex:
A vertex V of a simple digraph is said to be reachable from the vertex u of the same
digraph, if there exists a path from u to v.
Example:
𝑃1 = (〈1,2〉, 〈2,1〉)
𝑃1 = (〈3,4〉, 〈4,3〉)
(d)Connected Graph:
A graph G is connected if every pair of vertices are joined by a path otherwise the graph is
disconnected.
Connected graph
37 Show that sum of in-degrees of all the nodes of simple digraph is equal to the sum of out- 7
degrees of all the nodes and this sum equal to the number of edges in it.
(Dec-2021) [NLJIET]
Solution:
𝒊. 𝒆. ∑ 𝒅𝒆𝒈− (𝒗) = 𝒆
𝒗∈𝑽
∑ 𝒅𝒆𝒈+ (𝒗) = 𝒆
𝒗∈𝑽
40 How many edges does a graph have if it has vertices of degree 4, 3, 3, 2, 2? Draw such a 7
graph. [NLJIET]
Solution:
V=V(G)= {𝑣1 , 𝑣2 , 𝑣3 , 𝑣4 , 𝑣5 }
𝑑(𝑉1 ) = 4
𝑑(𝑉2 ) = 3
𝑑(𝑉4 ) = 2
𝑑(𝑉5 ) = 2
|𝐸| =?
∑ 𝑑(𝑉𝑖 ) = 2|𝐸|
∑ 𝑑( 𝑉𝑖 ) = 4+3+3+2+2 = 14 = 2|𝐸|
⇒ 2(7) = 2|𝐸|
⇒ |𝐸| = 7
TOPIC:2 REACHABILITY
DESCRIPTIVE QUESTIONS
1 Define Reachable set of a node v. Find the reachable sets of (1) node v1 and (2) node v8 for 3
the digraph given in following Figure.[NLJIET]
Solution:
Reachable set:
A vertex V of a simple digraph is said to be reachable from the vertex u of the same
digraph, if there exists a path from u to v.
The set of vertices which are reachable from a given vertex v is said to be the reachable set
of V.
It is denoted by R(v).
𝑅(𝑣8 ) = {𝑣8 , 𝑣7 , 𝑣6 }
2 Define node base of a simple digraph. Find reachability set of all nodes for the following 7
diagraph. [NLJIET]
Solution:
Node Base:
𝑅(𝑣6 ) = {𝑣6 }
𝑅(𝑣7 ) = {𝑣7 , 𝑣6 }
𝑅(𝑣8 ) = {𝑣8 , 𝑣7 , 𝑣6 }
𝑅(𝑣9 ) = {𝑣9 }
𝑅(𝑣10 ) = {𝑣10 }
Node base:
Solution:
Geodesic:
If vertex V is reachable from the vertex u, then a path of minimum length from u to v is
called geodesic.
• The most familiar examples are the straight lines in Euclidean geometry.
• On a sphere, the images of geodesics are the great circles.
• The shortest path from point A to point B on a sphere is given by the shorter arc of
the great circle passing through A and B.
4 Use Warshall’s algorithm to obtain path matrix from the adjacency matrix of 4
(Oct–2020) [NLJIET]
Solution:
The adjacency matrix of digraph G
0 0 0 1 0
1 0 0 0 0
𝐴=𝑃= 0 1 0 0 0
0 1 1 0 0
[0 0 1 0 0]
0 0 0 1 0
1 0 0 1 0
𝑃(𝑣1 ) = 0 1 0 0 0
0 1 1 0 0
[0 0 1 0 0]
0 0 0 1 0
1 0 0 1 0
𝑃(𝑣2 ) = 1 1 0 1 0
1 1 1 1 0
[0 0 1 0 0]
0 0 0 1 0
1 0 0 1 0
𝑃(𝑣3 ) = 1 1 0 1 0
1 1 1 1 0
[1 1 1 1 0]
1 1 1 1 0
1 1 1 1 0
𝑃(𝑣4 ) = 1 1 1 1 0
1 1 1 1 0
[1 1 1 1 0]
1 1 1 1 0
1 1 1 1 0
𝑃(𝑣5 ) = 1 1 1 1 0
1 1 1 1 0
[1 1 1 1 0]
5 Find the shortest path between each pair of vertices for a simple digraph using Warshall’s 4
Solution:
6 Find the shortest path matrix between each pair of vertices for a digraph using Warshall’s
Algorithm. [NLJIET]
Do yourself
TOPIC:3 Connectedness
DESCRIPTIVE QUESTIONS
1 Define a unilateral component and strong component. Write unilateral and strong and weak 7
components of the Graph given in following figure. [NLJIET]
Solution:
2 Find all the in degrees and out degrees of the nodes of the graph given in 7
following figure. Give all the elementary cycles of this graph. List all the nodes which are
reachable from another node of the diagraph [NLJIET]
Solution:
In Graph
Elementary Cycle:
𝒗𝟏 − 𝒗𝟐 − 𝒗𝟒 − 𝒗𝟏
𝒗𝟏 − 𝒗𝟐 − 𝒗𝟑 − 𝒗𝟒 − 𝒗𝟏
List of all the nodes which are reachable from another node of the diagraph
3 Define weakly connected, unilaterally connected and strongly connected graphs [NLJIET] 3
Solution:
Strongly connected A directed graph is said to be strongly connected it every two vertices
and b in G there is a path from a to b and b to a.
Disconnected graph: A directed graph which is neither strongly connected nor weekly
connected is known as disconnected graph.
Solution:
Solution:
2 Using Dijkstra’s algorithm, find the shortest path between vertices 𝑎 and 𝑧 [NLJIET] 7
Solution:
Solution:
A cycle that travels exactly once over each edge in a graph is called “Eulerian”.
” A cycle that travels exactly once over each vertex in a graph is called “Hamiltonian.”
4 Define a Eulerian graph and draw a graph which contains an Eulerian path but does not 3
contain an Eulerian circuit. [NLJIET]
Solution:
Definition:
A cycle that travels exactly once over each edge in a graph is called “Eulerian”.
” A cycle that travels exactly once over each vertex in a graph is called “Hamiltonian.”
An Euler path is a path that uses every edge of a graph exactly once.
A graph which contains an Eulerian path but does not contain an Eulerian circuit.
The graph is connected and there are exactly two vertices b and f of odd degree.
Hence the graph contains an Eulerian path but does not contain an Eulerian circuit.
Solution:
Solution:
We know that,
Graph II is connected graph and it has exactly 2 vertices of odd degree. Hence, this
graph possess an Euler’s path.
Solution:
Hamiltonian circuit is :
2, 3, 10, 11, 12, 4, 5, 1, 6, 7, 17, 16, 15, 14, 13, 20, 19, 18, 9, 8, 2