Another canonical example of an application of topsort is for program build dependencies. A program cannot be built unless all its dependencies are first built. For example, consider this graph where ...