ABSTRACT
We study two variants of the shortest path problem. Given an integer , the -color-constrained and the -interchange-constrained shortest path problems, respectively, seek a shortest path that uses no more than colors and one that makes no more than alternations of colors. We show that the former problem is NP-hard, when the latter is tractable. The study of these problems is motivated by some limitations in the use of diameter-based metrics to evaluate the topological structure of transit networks. We notably show that indicators such as the diameter or directness of a transit network fail to adequately account for travel convenience in measuring the connectivity of a network and propose a new network indicator, based on solving the -interchange-constrained shortest path problem, that aims at alleviating these limitations.
Acknowledgments
The author would like to thank Dr. Yuval Filmus for his helpful advice, as well as two anonymous reviewers for their valuable feedback that greatly improved this paper.
Disclosure statement
No potential conflict of interest was reported by the author.
Notes
1. In transit networks, intermediate nodes would necessarily be interchange nodes.