Minor features in priority queue and graphs