Pruned Highway Labeling is a shortest-path distance querying algorithm for road networks.
$ make
$ bin/construct graph_file label_file
$ bin/query label_file
- Execute
maketo build programs. - Execute
constructto construct labels for a graph. - Execute
queryto query distance between two vertices. - In a graph file, each line should contain two vertices, travel time and geometrical length (see
sample_graph.tsv). - Vertices should be described by integers starting from zero.
Please see pruned_highway_labeling.h and benchmark.cpp for detailed information.
- Takuya Akiba, Yoichi Iwata, Ken-ichi Kawarabayashi, and Yuki Kawata, Fast Shortest-path Distance Queries on Road Networks by Pruned Highway Labeling. In ALENEX 2014.