Topological sorting arranges vertices of a directed graph in such a way that for every directed edge from vertex u to vertex v, vertex u appears _______ vertex v in the ordering.

  • Adjacent to
  • After
  • Before
  • Parallel to
In topological sorting, for every directed edge from vertex u to vertex v, vertex u appears before vertex v in the ordering. This ensures that there is a consistent order of execution for tasks or dependencies.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *