CS 4720 Critical Path Algorithm