VX(Li): Add the priority queue for graph search.