A Graph-Based Multi-Agent Planning Algorithm with QoS Guarantees