For a given graph, is it a valid topological sort?

357 Views Asked by At

Given a graph:

enter image description here

Is 'a', 'b', 'd', 'c', 'e', 'f' a valid topological sort?

1

There are 1 best solutions below

0
On BEST ANSWER

That's right. For all uv edge, vertex u appears before vertex v in your list. And that's the condition that a topological sort has to fulfill.