Covert scheduling problem to a shortest path problem