Given a graph:
Is 'a', 'b', 'd', 'c', 'e', 'f' a valid topological sort?
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.
Copyright © 2021 JogjaFile Inc.
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.