fixed spacing for cpp dijkstra