HoeTosaki / GTree

Indexing and Answering Single Pair Shortest Path Query for RoadNetworks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GTree

Indexing and Answering Single Pair Shortest Path Query for RoadNetworks

GTree can index directed and undirected graphs, and answering shortest path querying very fast, i.e., several 0.1 ms on very large graph datasets (1~20 million of vertices) from http://users.diag.uniroma1.it/challenge9/download.shtml.

Input Graph File: First line with n vertices and m edges, following m lines of u v w, i.e., edge from u to v with weight w. Example: 1070376 2712798 1 2 35469 2 1 35469 5 6 5497 6 5 5497 7 5 3641 5 7 3641 ......

Building Index with buildTree(), and then use write_GTree() to write the index into index_file. We only need to build index once, and then load index anytime for shortest path querying.

About

Indexing and Answering Single Pair Shortest Path Query for RoadNetworks


Languages

Language:C++ 96.1%Language:C 2.8%Language:CMake 1.1%