in Graph Theory edited by
1,508 views
1 vote
1 vote
Can both euler path and euler circuit exist in same graph.

Can both Hamiltonian path and Hamiltonian circuit exist in same graph.
in Graph Theory edited by
1.5k views

2 Answers

4 votes
4 votes

Euler path and Euler circuit

No, a graph cannot contain Euler path and Euler circuit both.

Because for Euler path the graph must have exactly two vertices having odd degree but for Euler circuit all the vertices in that graph must have even degree.

Hamiltonian Path and Hamiltonian circuit

Yes, a graph can have both hamiltonian path and circuit.

Imagine a triangle ABC.



Then the path ABC is a hamiltonian path and the circuit ABCA is a hamiltonian circuit.

edited by

4 Comments

Ankit all your links are about eulerian trails . Here I am talking about eulerian path.

There is a difference between eulerian trail and eulerian path.

In a trail vertex can repeat but in a path vertex can't repeat.
0
0
@kushagra , but according to wikipedia , both are same..
0
0
0 votes
0 votes

both option are true.

  • if a graph have euler circuit then it must have euler path . but converse not true.

  • if a graph of all vertex are even degree then euler circuit must exist . and euler path also

  • if a graph have 2 odd degree vertex then there exist a euler path but not euler circuit.

  • Hamiltonian path and Hamiltonian circuit exist in same graph.

edited by

4 Comments

A path is a trail in which all vertices (except possibly the first and last) are distinct.

 
0
0
Can u show me any place or link where in  the definition of path the line (except possibly the first and the last ) is written.
0
0

Wikipedia + made easy note book

0
0
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true