Is there a cycle-free graph with a Hamiltonian circuit?

239 Views Asked by At

I have an question about graphs. Is there any graph in which there is no cycle, but it has a Hamiltonian circuit? I think there isn't such a graph.

Am I right?

Thanks for your answer in advance.

1

There are 1 best solutions below

2
On BEST ANSWER

A graph without any cycles can't contain a Hamiltonian circuit since a Hamiltonian circuit is a cycle.

If you meant Hamiltonian path instead of Hamiltonian circuit, then there is a solution. A Hamiltonian path is itself an example of a graph that trivially contains a Hamiltonian path but does not contain a cycle.

If you were to add any edge to a Hamiltonian path, you would immediately introduce a cycle and the resulting graph wouldn't satisfy your requirements anymore. So, the only type of graph that contains a Hamiltonian path but no cycles is a simple path.