- A topological sort is an ordering of the vertices in a directed acyclic graph. The ordering is such that for every directed edge from vertex vi to vj, vi comes before vj in the ordering. A topological sort is not possible if the graph contains a cycle. - The topological sort algorithm finds vertices with no incoming edges and adds them to the ordering. It then removes these vertices and repeats until the graph is empty or a cycle is detected. - The example graph shows the in-degrees of vertices in a graph. Vertex A has an in-degree of 0 and would be first in the topological sort ordering.