Topological sort or Kahn's algorithm - TUF+
Syllabus
Syllabus