Which type of graph is typically used for implementing topological sorting?

  • Bipartite graph
  • Directed Acyclic Graph (DAG)
  • Undirected graph
  • Weighted graph
Topological sorting is typically implemented on Directed Acyclic Graphs (DAGs) because these graphs have no cycles, making it possible to linearly order the vertices based on the directed edges.
Add your answer
Loading...

Leave a comment

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