0
9.7kviews
Explain Topological Sorting with example
1 Answer
| written 7.2 years ago by | modified 7.2 years ago by |
Topological sort: It id defined as an ordering of the vertices in a directed acyclic graph, such that if there is a path from u to v, then v appears after u in the ordering.
Types of graphs:
a. The graphs should be directed: otherwise for any edge (u,v) there …