hamilton path & topological sort

1.3k Views Asked by At

I'm trying to prove that a Hamilton path is the only topological sort. I think I need to show that in case there are two topological sorts, none of them is a Hamilton path.

How can I prove that a Hamilton path is the only topological sort in a DAG?

1

There are 1 best solutions below

0
On BEST ANSWER

The main thing you need to observe is that an Hamilton path is a path that goes through all vertices. Think how can one dag have 2 different topological sorts