add algorithm counting paths for too vertices specified in directed asyclic graph