Project for Algorithms class, choosing a subset of projects using a flow graph