Some Graph Algorithms 1. Topological sort Suppose a project involves doing a number of tasks, but some of the tasks cannot be done until others are done Your job is to find…