Developing a graph-based algorithm for optimising scheduling and network planning as part of subway construction subject to limited resources (Dependability)