PQ ordering is based on: g(n): the distance (cost) from start vertex to vertex n.
PQ ordering is based on: g(n): the distance (cost) from start vertex to vertex n AND h(n): the heuristic estimated cost from vertex n to goal vertex.
f(n) = g(n) + h(n)